Skip to content

Commit

Permalink
[bugfix] Skip data which has null dateChecked field from API
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahul Pandey committed Jul 9, 2020
1 parent 4412472 commit 0c373f5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class MainActivity : AppCompatActivity() {
return
}

perStateDailyData = statesData.reversed().groupBy { it.state }
perStateDailyData = statesData.filter { it.dateChecked != null }.reversed().groupBy { it.state }
Log.i(TAG, "Update spinner with state names")
updateSpinnerWithStateData(perStateDailyData.keys)
}
Expand Down

0 comments on commit 0c373f5

Please sign in to comment.