Feature/new route redeem code#1568
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
the first issue have already been fixed by one of my pr i.e redeem end point |
|
Functionality of redeeming one code works for me. |
|
Functionality works for me, when I enter an invalid local it automatically shows me everything in my browser language. |
|
If this PR replaces #1554 (which I then just unnecessarily tested :-() please close the outdated PR. |
@norbertschuler This PR is in addition to #1554 - #1554 updates the redemption process from the profile via the RedeemModal, and this PR focuses on a route to directly redeem a code. |
|
I would prefer upgrading |
|
| } | ||
| } | ||
| }, [router]); | ||
| }, [router, router.query.type, ready]); |
There was a problem hiding this comment.
Why do we need router and router.query.type both as dependencies here?
This has been solved, will now result in "invalid code" message. |
![Screenshot of /claim/[type]/[code]](https://images.weserv.nl?url=https://sjc.microlink.io/RLgLXLRKJ5A0J4wvdX4OUdKq_1mJ9QlgKcOerrX_LGFkFRGyuJFh6QuLa953FbUvybQ_zzDrggeNqIKNIMHXGg.png&w=600)
![Screenshot of /profile/redeem/[code]](https://images.weserv.nl?url=https://sjc.microlink.io/l5VVu8zg-EXXzF-ZLT_gsyjZnpwIxiEcx6U3kVOL--nrhxZPpFxnQwo_elv1xeRWYLO0C8SG6ARd4WNrSm5jng.png&w=600)

to do -> create a new route to handle redeem
steps:
1.use the route
/profile/redeem/:codeto see the result