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

pull/1/head
yflory 5 years ago
parent 198786ed90
commit ba74fc8d4f

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

Loading…
Cancel
Save