Skip to content

Commit 09ea7ac

Browse files
[alerts] data received alert reads forecastCount instead of openCount
1 parent 5416f2b commit 09ea7ac

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Precipitate/InitialViewController.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,9 @@ class InitialViewController: UIViewController {
100100
self.weatherPageViewController.setUpChildVCs()
101101
self.summaryViewController.setUpSubviews()
102102

103-
if (Defaults["openCount"].int! == 1) {
104-
self.presentWeatherDataReceivedAlert()
105-
}
106103
if (Defaults["forecastCount"].int == nil) {
107-
Defaults["forecastCount"] = 1
104+
Defaults["forecastCount"] = 0
105+
self.presentWeatherDataReceivedAlert()
108106
}
109107
Defaults["forecastCount"] = Defaults["forecastCount"].int! + 1
110108
print("forecastCount: \(Defaults["forecastCount"].int!)")

0 commit comments

Comments
 (0)