Skip to content

Commit

Permalink
Fix NaN when omitting amoutn url param (#518)
Browse files Browse the repository at this point in the history
  • Loading branch information
Duddino authored Jan 9, 2025
1 parent 94a6518 commit 8143e8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/dashboard/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ onMounted(async () => {
} else if (urlParams.has('pay')) {
transferAddress.value = urlParams.get('pay') ?? '';
transferDescription.value = urlParams.get('desc') ?? '';
transferAmount.value = parseFloat(urlParams.get('amount')) ?? 0;
transferAmount.value = parseFloat(urlParams.get('amount')) || '';
showTransferMenu.value = true;
}
Expand Down

0 comments on commit 8143e8f

Please sign in to comment.