Skip to content

Commit

Permalink
fix: use the current strategy in resolve function (#101)
Browse files Browse the repository at this point in the history
use the current strategy in resolve function
  • Loading branch information
vahidlazio committed Apr 26, 2024
1 parent d4ec757 commit eafe8bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/ConfidenceProvider/ConfidenceFeatureProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ public class ConfidenceFeatureProvider: FeatureProvider {
try await store(
with: context,
resolveResult: resolveResult,
refreshCache: self.initializationStrategy == .fetchAndActivate
refreshCache: strategy == .fetchAndActivate
)

// signal the provider is ready after the network request is done
if self.initializationStrategy == .fetchAndActivate {
if strategy == .fetchAndActivate {
eventHandler.send(.ready)
}
} catch {
Expand Down

0 comments on commit eafe8bf

Please sign in to comment.