Skip to content

Commit

Permalink
Update packages/desktop-client/src/components/util/AmountInput.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
lelemm and coderabbitai[bot] authored Oct 24, 2024
1 parent 1b19f98 commit 3ced57f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/desktop-client/src/components/util/AmountInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,7 @@ export function AmountInput({
function onSwitch() {
const amount = getAmount();
if (amount === 0) {
if (symbol !== '+') {
setSymbol('+');
} else {
setSymbol('-');
}
setSymbol(symbol === '+' ? '-' : '+');
}
fireUpdate(amount * -1);
}
Expand Down

0 comments on commit 3ced57f

Please sign in to comment.