Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
cindywu committed Nov 23, 2024
1 parent b8cf7f7 commit 5ab74fd
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/desktop-client/src/components/accounts/Balance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,8 @@ function SelectedBalance({ selectedItems, account }: SelectedBalanceProps) {
}

if (balance == null) {
if (scheduleBalance == null) {
return null;
} else {
balance = scheduleBalance;
}
} else if (scheduleBalance != null) {
balance = scheduleBalance;
} else {
balance += scheduleBalance;
}

Expand Down

0 comments on commit 5ab74fd

Please sign in to comment.