From db4fc1d8c594eb76d338bc93d4e367d9c8eec9d4 Mon Sep 17 00:00:00 2001 From: Dawid Tarasiuk Date: Wed, 3 Feb 2021 09:22:04 +0100 Subject: [PATCH] Fix failing login in Firefox browser (#970) The bug was introduced in OAuth2 implementation (1645e2fd), where the tokenAuthLoading flag from AuthProvider was not used and it did not blocked UI in loading state. --- src/auth/views/Login.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth/views/Login.tsx b/src/auth/views/Login.tsx index 2f7b9e294..59f7b1878 100644 --- a/src/auth/views/Login.tsx +++ b/src/auth/views/Login.tsx @@ -86,7 +86,7 @@ const LoginView: React.FC = ({ params }) => { externalAuthentications={ externalAuthentications?.shop?.availableExternalAuthentications } - loading={externalAuthenticationsLoading} + loading={externalAuthenticationsLoading || tokenAuthLoading} onExternalAuthentication={handleRequestExternalAuthentication} onPasswordRecovery={() => navigate(passwordResetUrl)} onSubmit={handleSubmit}