fix: check if auth params exist in hash before clearing it (#2666)

This commit is contained in:
Wyatt Johnson
2019-10-22 17:25:47 -04:00
committed by Kim Gardner
parent e816f8e019
commit e91da1c9a3
@@ -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();