Skip to content

Commit

Permalink
Fixed: not getting scrollToTop btn in balances screen
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-nirali-s committed Jan 22, 2025
1 parent 1422db8 commit db33678
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ private struct GroupBalanceItemView: View {
}
.frame(maxWidth: .infinity, alignment: .leading)

if memberBalance.totalOwedAmount.allSatisfy({ $0.value != 0 }) {
if memberBalance.totalOwedAmount.contains(where: { $0.value != 0 }) {
ScrollToTopButton(
icon: "chevron.down", iconColor: primaryText, bgColor: container2Color,
showWithAnimation: true, size: (10, 7), isFirstGroupCell: memberBalance.isExpanded,
Expand Down

0 comments on commit db33678

Please sign in to comment.