Skip to content

Commit

Permalink
πŸ› Guard against initializing Appcues multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
iujames committed Aug 17, 2023
1 parent ea718a2 commit 8ca0978
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/SegmentAppcues/AppcuesDestination.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public class AppcuesDestination: DestinationPlugin {
}

public func update(settings: Settings, type: UpdateType) {
guard type == .initial else { return }

guard let appcuesSettings: AppcuesSettings = settings.integrationSettings(forPlugin: self) else {
analytics?.log(message: "\(key) destination is disabled via settings")
return
Expand Down

0 comments on commit 8ca0978

Please sign in to comment.