Skip to content

Commit

Permalink
fix(my-account): disable buy button until payment is fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
KimiaMontazeri committed Nov 29, 2023
1 parent 82b7955 commit fa5bda3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/pages/my-account/MyAccount.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ const MyAccount = () => {
onClick={handleBuyCart}
variant="contained"
sx={{ px: 4 }}
disabled={buyButtonLoading || calculateTotalCost() === 0}
// disabled={buyButtonLoading || calculateTotalCost() === 0}
disabled
>
{!buyButtonLoading && 'Buy'}
{buyButtonLoading && <CircularProgress />}
Expand Down

0 comments on commit fa5bda3

Please sign in to comment.