Skip to content

Commit a54bdb9

Browse files
CalebRasphilium
andauthored
Update Shared/Supporting Files/Views/SampleMenuButtons.swift
Co-authored-by: Philip Ridgeway <[email protected]>
1 parent 282f18f commit a54bdb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Shared/Supporting Files/Views/SampleMenuButtons.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ struct SampleMenuButtons: View {
3636
Divider()
3737
Button {
3838
if sampleIsFavorite {
39-
favoriteNames.removeAll { $0 == sample.name }
39+
favoriteNames.removeAll(where: { $0 == sample.name })
4040
} else {
4141
favoriteNames.append(sample.name)
4242
}

0 commit comments

Comments
 (0)