diff --git a/ui/redux/actions/app.js b/ui/redux/actions/app.js index 7384748af..a5ad7ad3e 100644 --- a/ui/redux/actions/app.js +++ b/ui/redux/actions/app.js @@ -550,15 +550,13 @@ export function doSignOut() { .then(doSignOutCleanup) .then(() => { // @if TARGET='web' - window.persistor.purge(); + return window.persistor.purge(); // @endif }) - .then(() => { - setTimeout(() => { - location.reload(); - }); + .catch((err) => { + analytics.error(`\`doSignOut\`: ${err.message || err}`); }) - .catch(() => location.reload()); + .finally(() => location.reload()); } }; }