Skip to content

Commit

Permalink
Updated sendChange conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
calvadev committed Aug 14, 2024
1 parent 3e85560 commit 4a8fee0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/utility-components/redemption-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default function RedemptionModal({
}, [opened]);

const sendChange = async (pubkey: string) => {
if (changeAmount >= 1) {
if (changeAmount >= 1 && changeProofs.length > 0) {
const decryptedRandomNpub = nip19.decode(randomNpub);
const decryptedRandomNsec = nip19.decode(randomNsec);
let encodedChange = getEncodedToken({
Expand Down

0 comments on commit 4a8fee0

Please sign in to comment.