Skip to content

Commit

Permalink
fix donation value change issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlanglen committed Nov 3, 2023
1 parent ca246d5 commit ee68786
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/potlock/widget/Cart/CheckoutItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ return (
placeholder: "0",
value: props.cart[projectId]?.amount,
onChange: (amount) => {
if (amount === ".") amount = "0.";
props.updateCartItem(
projectId,
amount,
Expand Down
1 change: 1 addition & 0 deletions build/potlock/src/Cart/CheckoutItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ return (
placeholder: "0",
value: props.cart[projectId]?.amount,
onChange: (amount) => {
if (amount === ".") amount = "0.";
props.updateCartItem(
projectId,
amount,
Expand Down

0 comments on commit ee68786

Please sign in to comment.