We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe6fcfa commit 477127aCopy full SHA for 477127a
Sources/Swift/Display Receipt/DisplayReceiptCacheHelper.swift
@@ -121,7 +121,7 @@ internal struct DisplayReceiptCacheHelper {
121
122
func isOptOut() throws -> Bool {
123
let defaults = try appInformationProvider.sharedDefaults()
124
- if defaults.object(forKey: "batch_shared_optout") != nil {
+ if defaults.object(forKey: "batch_shared_optout") == nil {
125
// Key is missing, we don't send display receipt
126
return true
127
}
0 commit comments