Skip to content

Commit 49c004b

Browse files
committed
Fix check of setEnvironmentProduction setting
1 parent eea698f commit 49c004b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SegmentAdjust/AdjustDestination.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ open class AdjustDestination: NSObject, DestinationPlugin {
5656
adjustSettings = settings
5757

5858
var environment = ADJEnvironmentSandbox
59-
if let _ = settings.setEnvironmentProduction {
59+
if let isProduction = settings.setEnvironmentProduction, isProduction == true {
6060
environment = ADJEnvironmentProduction
6161
}
6262

0 commit comments

Comments
 (0)