Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Fix #7823: Select Account not always showing checkmark (#7824)
Browse files Browse the repository at this point in the history
Fix account comparison for selected account
  • Loading branch information
StephenHeaps authored Aug 3, 2023
1 parent d0e8bbe commit 0c6a127
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ struct AccountSelectionRootView: View {
ForEach(allAccounts) { account in
AccountListRowView(
account: account,
isSelected: selectedAccounts.contains(account)
isSelected: selectedAccounts.contains(where: { selectedAccount in
selectedAccount.accountId == account.accountId
})
) {
selectAccount(account)
}
Expand Down

0 comments on commit 0c6a127

Please sign in to comment.