fix: keep caching users in localstorage until fully migrating to indexed db

This commit is contained in:
Alejandro Gomez 2023-01-15 17:18:28 +01:00
parent 5a1532e8c5
commit ac3f3ffff7
No known key found for this signature in database
GPG Key ID: 4DF39E566658C817

View File

@ -75,6 +75,7 @@ const UsersSlice = createSlice({
nip05: x.nip05,
picture: x.picture,
})
window.localStorage.setItem(`user:${x.pubkey}`, JSON.stringify(x));
state.users = {
...state.users