Skip to content

Commit

Permalink
fix: displaying locked amount btn
Browse files Browse the repository at this point in the history
  • Loading branch information
AMIRKHANEF committed Nov 3, 2024
1 parent abb0241 commit 7381a84
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default function AmountWithOptionsAndLockAmount({ accountLocks, amount, b
label={t<string>('Amount ({{token}})', { replace: { token } })}
onChangeAmount={onValueChange}
onPrimary={onMaxAmount}
onSecondary={onLockedAmount}
onSecondary={lockedAmount && !lockedAmount?.isZero() ? onLockedAmount : undefined}
primaryBtnText={t<string>('Max amount')}
secondaryBtnText={t<string>('Locked amount')}
style={{
Expand Down

0 comments on commit 7381a84

Please sign in to comment.