diff options
| -rw-r--r-- | src/data/StopDataProvider.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/data/StopDataProvider.ts b/src/data/StopDataProvider.ts index 6245e7a..73075c8 100644 --- a/src/data/StopDataProvider.ts +++ b/src/data/StopDataProvider.ts @@ -75,7 +75,8 @@ export class StopDataProvider { recentStops.add(stopId); if (recentStops.size > this.RECENT_STOPS_LIMIT) { const iterator = recentStops.values(); - recentStops.delete(iterator.next().value); + const val = iterator.next().value as number; + recentStops.delete(val); } localStorage.setItem('recentStops', JSON.stringify(Array.from(recentStops))); |
