Send warning to accounts when we can't update pin limit

pull/1/head
yflory 2019-12-04 10:49:51 +01:00
parent 198786ed90
commit ba74fc8d4f
1 changed files with 2 additions and 2 deletions

View File

@ -126,12 +126,12 @@ define([
} else if (data.cmd === 'UPDATE_LIMIT') {
return void whenReady(function () {
if (rpcError) {
// XXX
// Tell the user on accounts that there was an issue and they need to wait maximum 24h or contact an admin
ret.warning = true;
}
rpc.updatePinLimits(function (e, limit, plan, note) {
if (e) {
// XXX same as above
ret.warning = true;
}
ret.res = [limit, plan, note];
srcWindow.postMessage(JSON.stringify(ret), domain);