Skip to content

Commit ff85539

Browse files
committed
empty amount string fixed
1 parent e349c33 commit ff85539

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

public/js/paystack-forms-public.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@
5555
if (transaction_amount > 2500) {extrafee = 100};
5656
}
5757
var total = transaction_amount + fees + extrafee;
58-
if (transaction_amount == '' || transaction_amount == 0) {
58+
console.log(transaction_amount);
59+
if (transaction_amount == '' || transaction_amount == 0 || transaction_amount.length == 0 || transaction_amount == null || isNaN (transaction_amount)) {
5960
var total = 0;
6061
var fees = 0;
6162
}

0 commit comments

Comments
 (0)