diff options
| author | Ariel Costas Guerrero <94913521+arielcostas@users.noreply.github.com> | 2024-09-09 19:12:40 +0200 |
|---|---|---|
| committer | Ariel Costas Guerrero <94913521+arielcostas@users.noreply.github.com> | 2024-09-09 19:12:40 +0200 |
| commit | ab16ea5185906dbd39f3ca88f78ec314d350574f (patch) | |
| tree | 098962568bab58bee8c195a9894de942d3f4a732 | |
| parent | 8b8d8e261b17c99d04379e585bd890f8154c25a0 (diff) | |
Fix typescript complaining
| -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))); |
