Skip to content

Commit 0e5d002

Browse files
author
Momo Ozawa
committed
Fix: add a default value for siteID
This fixes an issue where the promptWasDismissedKey was returning nil for self-hosted sites not connected to Jetpack.
1 parent 0a87420 commit 0e5d002

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

WordPress/Classes/ViewRelated/Blog/QuickStartSettings.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ final class QuickStartSettings {
3535
}
3636

3737
private func promptWasDismissedKey(for blog: Blog) -> String? {
38-
guard let siteID = blog.dotComID?.intValue else {
39-
return nil
40-
}
38+
let siteID = blog.dotComID?.intValue ?? 0
4139
return "QuickStartPromptWasDismissed-\(siteID)"
4240
}
4341

0 commit comments

Comments
 (0)