Skip to content

Commit

Permalink
another fix for entry 0
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjohn1028 committed Oct 11, 2023
1 parent 21d449b commit 357cd96
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const UnlockDeposit = ({
const isValid = await validateInstruction({ schema, form, setFormErrors })
let serializedInstruction = ''
const prerequisiteInstructions: TransactionInstruction[] = []
if (isValid && form.depositEntryIndex) {
if (isValid && typeof form.depositEntryIndex === 'number') {
const voterAuthorityPk = new PublicKey(form.voterAuthorityPk)

const unlockDepositIx = await getUnlockDepositInstruction({
Expand Down

0 comments on commit 357cd96

Please sign in to comment.