diff --git a/src/core/client/admin/local/initLocalState.ts b/src/core/client/admin/local/initLocalState.ts index 59f6e175c..8401c6a9e 100644 --- a/src/core/client/admin/local/initLocalState.ts +++ b/src/core/client/admin/local/initLocalState.ts @@ -22,7 +22,7 @@ export default async function initLocalState( // Get all the parameters from the hash. const params = getParamsFromHash(); - if (params) { + if (params && (params.accessToken || params.error)) { // If there were params in the hash, then clear them! clearHash();