Skip to content

Commit c2fab2c

Browse files
committed
fix: preserve claimed state after claim
1 parent c633584 commit c2fab2c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

app/migration/ClaimClient.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@ export default function ClaimClient() {
200200
}
201201

202202
setClaimState("success");
203-
setClaimMessage("Migration successful. Tokens are now in your wallet.");
204-
await refetchClaimed();
203+
setClaimMessage("You've already claimed with this wallet.");
204+
await refetchClaimed().catch(() => undefined);
205205
} catch (error) {
206206
setClaimState("error");
207207
setClaimMessage(getErrorMessage(error));
@@ -238,10 +238,10 @@ export default function ClaimClient() {
238238
hint = "Loading eligibility data...";
239239
} else if (!entry) {
240240
hint = "This wallet is not eligible for migration.";
241+
} else if (isAlreadyClaimed) {
242+
hint = "You've already claimed with this wallet.";
241243
} else if (claimedReadError) {
242244
hint = "Unable to check migration status. Please try again.";
243-
} else if (isAlreadyClaimed) {
244-
hint = "You've already migrated with this wallet.";
245245
} else {
246246
hint = "You'll confirm a transaction in your wallet.";
247247
}

0 commit comments

Comments
 (0)