Skip to content

Commit db33678

Browse files
committed
Fixed: not getting scrollToTop btn in balances screen
1 parent 1422db8 commit db33678

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Splito/UI/Home/Groups/Group/Group Options/Balances/GroupBalancesView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ private struct GroupBalanceItemView: View {
142142
}
143143
.frame(maxWidth: .infinity, alignment: .leading)
144144

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

0 commit comments

Comments
 (0)