Skip to content

Commit

Permalink
fix: update token no matter db had user or not (#386)
Browse files Browse the repository at this point in the history
Because

- update token no matter db had user or not

This commit

- update token no matter db had user or not
  • Loading branch information
EiffelFly committed Mar 27, 2023
1 parent 6e0f3b5 commit 2c59339
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/components/onboarding/OnboardingForm/OnboardingForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,7 @@ export const OnboardingForm = ({ user }: OnboardingFormProps) => {

let token: string | undefined = undefined;

if (user && user.cookie_token && user.cookie_token !== "") {
token = user.cookie_token;
} else {
token = uuidv4();
}
token = uuidv4();

const payload: Partial<User> = {
id: "local-user",
Expand Down

0 comments on commit 2c59339

Please sign in to comment.