fix: bas64 encoding issue
This commit is contained in:
parent
6bf832da0d
commit
7995a62439
@ -48,7 +48,13 @@ function EmailEnterPage(): JSX.Element {
|
|||||||
const payload = { user: { profile_attributes: { birthday } }, token }
|
const payload = { user: { profile_attributes: { birthday } }, token }
|
||||||
return api.updateUser(payload)
|
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()))
|
.then(() => navigate(routes.client.subscription()))
|
||||||
.catch((error: Error) => setError(error))
|
.catch((error: Error) => setError(error))
|
||||||
.finally(() => setIsLoading(false))
|
.finally(() => setIsLoading(false))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user