fix: 🐛

This commit is contained in:
codytseng
2025-01-13 23:56:41 +08:00
parent c62a82f673
commit 6bc2fde314
5 changed files with 10 additions and 5 deletions

View File

@@ -91,7 +91,8 @@ class StorageService {
this.activeRelaySetId = activeRelaySetId
} else {
this.relaySets = JSON.parse(relaySetsStr)
this.activeRelaySetId = window.localStorage.getItem(StorageKey.ACTIVE_RELAY_SET_ID) ?? null
const activeRelaySetIdStr = window.localStorage.getItem(StorageKey.ACTIVE_RELAY_SET_ID)
this.activeRelaySetId = activeRelaySetIdStr ? JSON.parse(activeRelaySetIdStr) : null
}
}