From 31be692acd820b80fbeeb2d2c78ef81bc852de39 Mon Sep 17 00:00:00 2001 From: Chris Beer <cabeer@stanford.edu> Date: Thu, 15 Oct 2020 10:59:25 -0700 Subject: [PATCH] Trust that we should fetch cookies or tokens over the ok-ness of item --- src/containers/IIIFAuthentication.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/containers/IIIFAuthentication.js b/src/containers/IIIFAuthentication.js index 1aea8f039..ddc374157 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); -- GitLab