diff --git a/VoteStakeRegistry/components/instructions/UnlockDeposit.tsx b/VoteStakeRegistry/components/instructions/UnlockDeposit.tsx index d83348e4a0..26f26d5472 100644 --- a/VoteStakeRegistry/components/instructions/UnlockDeposit.tsx +++ b/VoteStakeRegistry/components/instructions/UnlockDeposit.tsx @@ -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({