Merge pull request #4797 from pangeachat/4790-practice-mode-opens-a-grey-screen-overlay

fix: fix type issue with keys in practice selection repo
This commit is contained in:
ggurdin 2025-12-04 14:27:07 -05:00 committed by GitHub
commit 0c99ab3098
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -77,17 +77,19 @@ class PracticeSelectionRepo {
static PracticeSelection? _getCached(
String eventId,
) {
for (final String key in _storage.getKeys()) {
try {
try {
final keys = List.from(_storage.getKeys());
for (final String key in keys) {
final cacheEntry = _PracticeSelectionCacheEntry.fromJson(
_storage.read(key),
);
if (cacheEntry.isExpired) {
_storage.remove(key);
}
} catch (e) {
_storage.remove(key);
}
} catch (e) {
_storage.erase();
return null;
}
final entry = _storage.read(eventId);