From ee68786975c2e920beb9e6042c86f7b6a5bfa815 Mon Sep 17 00:00:00 2001 From: Lachlan Glen <54282009+lachlanglen@users.noreply.github.com> Date: Fri, 3 Nov 2023 09:57:27 -0400 Subject: [PATCH] fix donation value change issue --- apps/potlock/widget/Cart/CheckoutItem.jsx | 1 + build/potlock/src/Cart/CheckoutItem.jsx | 1 + 2 files changed, 2 insertions(+) diff --git a/apps/potlock/widget/Cart/CheckoutItem.jsx b/apps/potlock/widget/Cart/CheckoutItem.jsx index b06d7b23..0d6b8c52 100644 --- a/apps/potlock/widget/Cart/CheckoutItem.jsx +++ b/apps/potlock/widget/Cart/CheckoutItem.jsx @@ -123,6 +123,7 @@ return ( placeholder: "0", value: props.cart[projectId]?.amount, onChange: (amount) => { + if (amount === ".") amount = "0."; props.updateCartItem( projectId, amount, diff --git a/build/potlock/src/Cart/CheckoutItem.jsx b/build/potlock/src/Cart/CheckoutItem.jsx index b06d7b23..0d6b8c52 100644 --- a/build/potlock/src/Cart/CheckoutItem.jsx +++ b/build/potlock/src/Cart/CheckoutItem.jsx @@ -123,6 +123,7 @@ return ( placeholder: "0", value: props.cart[projectId]?.amount, onChange: (amount) => { + if (amount === ".") amount = "0."; props.updateCartItem( projectId, amount,