Skip to content

Commit

Permalink
Reset sessionManager before updating state to avoid leaving unauthent…
Browse files Browse the repository at this point in the history
…icated state with default store
  • Loading branch information
itsmeichigo committed Oct 18, 2024
1 parent 2f9b95a commit 0c8f5f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WooCommerce/Classes/Yosemite/DefaultStoresManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,9 @@ class DefaultStoresManager: StoresManager {
let resetAction = CardPresentPaymentAction.reset
dispatch(resetAction)

sessionManager.reset()
state = DeauthenticatedState()

sessionManager.reset()
ServiceLocator.analytics.refreshUserData()
ZendeskProvider.shared.reset()
ServiceLocator.storageManager.reset()
Expand Down

0 comments on commit 0c8f5f0

Please sign in to comment.