Skip to content

Commit 3b7e4ab

Browse files
committed
Track connection step only before connection
1 parent 6561866 commit 3b7e4ab

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

WooCommerce/Classes/Authentication/Jetpack Setup/Native Jetpack Setup/JetpackSetupViewModel.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,10 @@ private extension JetpackSetupViewModel {
342342
// Ref: pe5sF9-401-p2
343343
private extension JetpackSetupViewModel {
344344
func checkJetpackConnection(afterConnection: Bool, retryCount: Int = 0) {
345-
currentSetupStep = .connection
346-
trackSetupAfterLogin()
345+
if afterConnection == false {
346+
currentSetupStep = .connection
347+
trackSetupAfterLogin()
348+
}
347349
guard retryCount <= Constants.maxRetryCount else {
348350
return didFailJetpackConnection()
349351
}

0 commit comments

Comments
 (0)