From 7995a624393ae7dd1770e5e63e8cae2bb2a51aee Mon Sep 17 00:00:00 2001 From: "Aidar Shaikhutdin @makeweb.space" Date: Thu, 18 May 2023 20:17:26 +0600 Subject: [PATCH] fix: bas64 encoding issue --- src/components/EmailEnterPage/index.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/EmailEnterPage/index.tsx b/src/components/EmailEnterPage/index.tsx index df0251e..fe933db 100644 --- a/src/components/EmailEnterPage/index.tsx +++ b/src/components/EmailEnterPage/index.tsx @@ -48,7 +48,13 @@ function EmailEnterPage(): JSX.Element { const payload = { user: { profile_attributes: { birthday } }, token } return api.updateUser(payload) }) - .then(({ user }) => dispatch(actions.user.update(user))) + .then(({ user }) => { + // TODO: remove this when understand btoa issue + if (user?.profile?.sign?.sign) { + user.profile.sign.sign = '' + } + dispatch(actions.user.update(user)) + }) .then(() => navigate(routes.client.subscription())) .catch((error: Error) => setError(error)) .finally(() => setIsLoading(false))