Skip to content

Commit

Permalink
feat: It might be useful if variable should be immutable
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouxl committed Dec 3, 2024
1 parent 4fee1fa commit 098311c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion FRW/Services/Track/EventTrack.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,13 @@ extension EventTrack {
Mixpanel
.mainInstance()
.registerSuperProperties([Superkey.deviceId: UUIDManager.appUUID()])
var env = "production"
let env: String
if RemoteConfigManager.shared.isStaging {
env = "staging"
} else if isDevModel {
env = "development"
} else {
env = "production"
}

Mixpanel.mainInstance().registerSuperProperties([Superkey.env: env])
Expand Down

0 comments on commit 098311c

Please sign in to comment.