error handling for multiple device login

This commit is contained in:
sairaj mote 2022-04-06 12:01:08 +05:30
parent 5425e9efa7
commit c93ea8a5b1

View File

@ -2121,7 +2121,14 @@
render.userOrders();
proxy.secret.then(_ => null).catch(_ => null);
showPage(window.location.hash);
}).catch(error => notify(error.data, 'error'))
}).catch(error => {
if (error.data === 'Invalid request signature! Re-login if this error occurs frequently') {
proxy.clear()
location.reload()
}
else
notify(error.data, 'error')
})
.finally(() => {
hideProcess('login_button_wrapper')
})