Commit 4d5ebef7 by Demid Merzlyakov

Fix a typo

parent a708a09e
...@@ -9,5 +9,5 @@ import Foundation ...@@ -9,5 +9,5 @@ import Foundation
public struct Notifications { public struct Notifications {
public let updatedAt: Date public let updatedAt: Date
public let nwsAlers: [NWSAlert] public let nwsAlerts: [NWSAlert]
} }
...@@ -59,7 +59,7 @@ class TodayAlertCell: UITableViewCell { ...@@ -59,7 +59,7 @@ class TodayAlertCell: UITableViewCell {
public func configure(location: Location) { public func configure(location: Location) {
infoLabel.text = "" infoLabel.text = ""
timeAgoLabel.text = "" timeAgoLabel.text = ""
if let alerts = location.notifications?.nwsAlers.filter( { !$0.expired }) { if let alerts = location.notifications?.nwsAlerts.filter( { !$0.expired }) {
if let firstAlert = alerts.first { if let firstAlert = alerts.first {
var mostSevereAlert = firstAlert var mostSevereAlert = firstAlert
for alert in alerts { for alert in alerts {
......
...@@ -193,7 +193,7 @@ class TodayCellFactory: CellFactoryProtocol { ...@@ -193,7 +193,7 @@ class TodayCellFactory: CellFactoryProtocol {
} }
let location = self.todayViewModel.location let location = self.todayViewModel.location
if location?.notifications?.nwsAlers.filter({ !$0.expired }).count ?? 0 == 0 { if location?.notifications?.nwsAlerts.filter({ !$0.expired }).count ?? 0 == 0 {
rowsToHide.insert(.alert) rowsToHide.insert(.alert)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment