diff --git a/src/containers/IIIFAuthentication.js b/src/containers/IIIFAuthentication.js index 1aea8f039bd207bfc6f673be934b76c07539b651..ddc37415752a29259249f3356abb9e57acdd7134 100644 --- a/src/containers/IIIFAuthentication.js +++ b/src/containers/IIIFAuthentication.js @@ -41,14 +41,14 @@ const mapStateToProps = (state, { windowId }) => { if (!authStatus) { status = null; - } else if (authStatus.ok) { - status = 'ok'; - } else if (authStatus.ok === false) { - status = 'failed'; } else if (authStatus.isFetching) { if (authStatus.windowId === windowId) status = 'cookie'; } else if (accessTokenStatus && accessTokenStatus.isFetching) { if (authStatus.windowId === windowId) status = 'token'; + } else if (authStatus.ok) { + status = 'ok'; + } else if (authStatus.ok === false) { + status = 'failed'; } const authProfiles = getAuthProfiles(state);