Skip to content

Commit 372644e

Browse files
committed
WIP
1 parent c288061 commit 372644e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

WordPress/Jetpack/Classes/ViewRelated/WordPress-to-Jetpack Migration/Success card/MigrationSuccessCardView.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@ class MigrationSuccessCardView: UIView {
7373
}
7474
}
7575

76-
// TODO: This extension is temporary, and should be replaced by the actual condition to check, and placed in the proper location
7776
extension MigrationSuccessCardView {
78-
@objc
79-
static var shouldShowMigrationSuccessCard: Bool {
80-
81-
AppConfiguration.isJetpack && showCard
77+
78+
// TODO: Perhaps this logic should move another location
79+
@objc static var shouldShowMigrationSuccessCard: Bool {
80+
let isJetpack = AppConfiguration.isJetpack
81+
let migrationCompleted = true
82+
let wordPressAppExists = true
83+
return isJetpack && migrationCompleted && wordPressAppExists
8284
}
83-
84-
private static let showCard = false
8585
}

0 commit comments

Comments
 (0)