Skip to content

Commit 52d4846

Browse files
committed
Add: close modal on claim with vesting
1 parent 1590989 commit 52d4846

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/components/Modals/WalletTokenModal/WalletTokenModal.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ const WalletTokenModal = ({ accountId, claimableWalletToken, rewards, network })
5050
claimEarlyRewards(true)
5151
hideModal()
5252
}
53+
54+
const claimWithVesting = () => {
55+
claimVesting()
56+
hideModal()
57+
}
58+
5359
const eligibilityLeft = MIN_ELIGIBLE_USD - rewards.balance.balanceInUSD
5460
const isEligible = eligibilityLeft <= 0
5561
const accumulatedWallets = rewards['balance-rewards'] + rewards['adx-rewards']
@@ -247,7 +253,7 @@ const WalletTokenModal = ({ accountId, claimableWalletToken, rewards, network })
247253
<Button
248254
variant="primaryGradient"
249255
className={styles.fullWidthButton}
250-
onClick={claimVesting}
256+
onClick={claimWithVesting}
251257
disabled={!!disabledReason}
252258
>
253259
Claim

0 commit comments

Comments
 (0)