fix: bas64 encoding issue

This commit is contained in:
Aidar Shaikhutdin @makeweb.space 2023-05-18 20:17:26 +06:00
parent 6bf832da0d
commit 7995a62439

View File

@ -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))