Skip to content

Commit

Permalink
Fix 'already redeemed' message
Browse files Browse the repository at this point in the history
  • Loading branch information
Kexort committed Nov 13, 2024
1 parent 79c0d21 commit 1b695a7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pages/ClaimRewardPage/ClaimRevardPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ const ClaimRewardPage: React.FC = () => {
const code = localStorage.getItem(GIFTCODE_KEY);
if (code !== null && inputRef.current) {
inputRef.current.value = code;
if (code === "already redeemed") {
localStorage.removeItem(GIFTCODE_KEY);
}
} else if (!nonceRequested) {
nonceRequested = true;
try {
Expand Down Expand Up @@ -61,7 +64,7 @@ const ClaimRewardPage: React.FC = () => {
console.log("error fetching nonce: ", error);
}
}
});
}, []);

const handleCopyClick = async () => {
if (inputRef.current) {
Expand Down

0 comments on commit 1b695a7

Please sign in to comment.