Skip to content

Commit

Permalink
fix claim link
Browse files Browse the repository at this point in the history
  • Loading branch information
vanxh committed Sep 5, 2023
1 parent be79c1a commit ba3a924
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/actions/claim-link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ export const claimLink = (link: string) => {
const { userId } = auth();

if (!userId) {
return redirect(`/sign-up?redirectUrl=/create-link?link=${link}`);
return redirect(
`/sign-up?redirectUrl=/create-link?link=${link.toLowerCase()}`
);
}

redirect(`/create-link?link=${link}`);
Expand Down

0 comments on commit ba3a924

Please sign in to comment.