Skip to content

Commit

Permalink
return empty string rather than nil to prevent crashing on sort.
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnbierman committed May 3, 2020
1 parent e2575c6 commit a52b580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CovidTracking/Model/State.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ struct State: Decodable {
let state: String
let positive, totalTestResults, negative, death: Int?
let dateModified, dateChecked: String
var fullStateName: String? { return statesDictionary[state] ?? nil }
var fullStateName: String? { return statesDictionary[state] ?? "" }
}

0 comments on commit a52b580

Please sign in to comment.