(ios) Bug fix: recent tip amounts (e.g. 10%, 15%, 20%) could contain duplicate numbers in certain situations
@@ -546,8 +546,10 @@ struct PriceSliderSheet: View {
if let minDiff = diffs.min(), let minIdx = diffs.firstIndex(of: minDiff) {
let defaultValue = extras.remove(at: minIdx)
+ if !recents.contains(defaultValue) {
recents.append(defaultValue)
}
+ }
} while recents.count < targetCount && !extras.isEmpty
}
