From e0cb75479337522b521f77b3046c3c56eb0dcbc6 Mon Sep 17 00:00:00 2001 From: yunakim714 Date: Wed, 22 Jan 2025 09:28:13 -0500 Subject: [PATCH] revert change --- packages/template-retail-react-app/app/pages/login/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/template-retail-react-app/app/pages/login/index.jsx b/packages/template-retail-react-app/app/pages/login/index.jsx index 9f41dd2eb8..f32d27247a 100644 --- a/packages/template-retail-react-app/app/pages/login/index.jsx +++ b/packages/template-retail-react-app/app/pages/login/index.jsx @@ -148,7 +148,7 @@ const Login = ({initialView = LOGIN_VIEW}) => { // executing a passwordless login attempt using the token. The process waits for the // customer baskets to be loaded to guarantee proper basket merging. useEffect(() => { - if (path === PASSWORDLESS_LOGIN_LANDING_PATH) { + if (path === PASSWORDLESS_LOGIN_LANDING_PATH && isSuccessCustomerBaskets) { const token = queryParams.get('token') const passwordlessLogin = async () => {