Skip to content

Commit

Permalink
Fix bug: credit/debit selector should not be allowed null state
Browse files Browse the repository at this point in the history
  • Loading branch information
ystxn committed Jun 17, 2024
1 parent 3563a4e commit 52beb9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transactions/add-transaction-dialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ const AddTransactionDialog = ({
value={side}
exclusive
fullWidth
onChange={(event, s) => setSide(s)}
onChange={(_, s) => s && setSide(s)}
>
<ToggleButton value={1} aria-label="Credit">
Credit
Expand Down

0 comments on commit 52beb9e

Please sign in to comment.