Skip to content

Commit

Permalink
fix: Disable button when the order is equal to zero
Browse files Browse the repository at this point in the history
  • Loading branch information
acasazza committed Feb 24, 2022
1 parent ec5472b commit 7d40ac4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/PlaceOrderButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ const PlaceOrderButton: FunctionComponent<PlaceOrderButtonProps> = (props) => {
) {
setNotPermitted(false)
}
} else if (order?.total_amount_with_taxes_cents === 0) {
setNotPermitted(false)
} else {
setNotPermitted(true)
}
Expand Down

0 comments on commit 7d40ac4

Please sign in to comment.