Skip to content

Commit

Permalink
Fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ppsimatikas committed Aug 7, 2024
1 parent 39f3651 commit 1e3ec06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions VoteStakeRegistry/components/Account/LockTokensModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ const LockTokensModal = ({
? getMintDecimalAmount(
mint,
depositRecord?.amountDepositedNative.add(
new BN(realmTokenAccount?.account.amount)
new BN(realmTokenAccount?.account.amount ?? 0)
)
)
: getMintDecimalAmount(mint, depositRecord?.amountDepositedNative)
Expand All @@ -191,7 +191,7 @@ const LockTokensModal = ({
? fmtMintAmount(
mint,
depositRecord?.amountDepositedNative.add(
new BN(realmTokenAccount?.account.amount)
new BN(realmTokenAccount?.account.amount ?? 0)
)
)
: fmtMintAmount(mint, depositRecord?.amountDepositedNative)
Expand Down Expand Up @@ -276,7 +276,7 @@ const LockTokensModal = ({
lockUpPeriodInDays: lockupPeriodDays,
lockupKind: lockupType.value,
sourceDepositIdx: depositRecord!.index,
sourceTokenAccount: realmTokenAccount?.publicKey,
sourceTokenAccount: realmTokenAccount!.publicKey,
allowClawback: allowClawback,
tokenOwnerRecordPk,
client: client,
Expand Down

0 comments on commit 1e3ec06

Please sign in to comment.