aboutsummaryrefslogtreecommitdiff
path: root/src/data
diff options
context:
space:
mode:
authorAriel Costas Guerrero <94913521+arielcostas@users.noreply.github.com>2024-09-09 19:12:40 +0200
committerAriel Costas Guerrero <94913521+arielcostas@users.noreply.github.com>2024-09-09 19:12:40 +0200
commitab16ea5185906dbd39f3ca88f78ec314d350574f (patch)
tree098962568bab58bee8c195a9894de942d3f4a732 /src/data
parent8b8d8e261b17c99d04379e585bd890f8154c25a0 (diff)
Fix typescript complaining
Diffstat (limited to 'src/data')
-rw-r--r--src/data/StopDataProvider.ts3
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)));