fix: properly check before generating qr

This commit is contained in:
2026-08-28 13:22:30 +07:00 Unverified
parent 709074ea97
commit 825d88e725
+1 -1
View File
@@ -19,7 +19,7 @@ export function DynamicPPQR() {
useEffect(() => {
const amount = form.values.amount as string;
if (!amount) {
if (!amount || Number.isNaN(Number(amount))) {
setCurrent("");
setQrcode("");
setChanged(false);