fix: store pic urls

This commit is contained in:
Alejandro Gomez 2023-01-15 13:26:21 +01:00
parent 5b69b2f7b0
commit 02af127869
No known key found for this signature in database
GPG Key ID: 4DF39E566658C817
3 changed files with 3 additions and 4 deletions

View File

@ -8,7 +8,7 @@ export class SnortDB extends Dexie {
constructor() { constructor() {
super('snortDB'); super('snortDB');
this.version(1).stores({ this.version(1).stores({
users: '++pubkey, name, display_name, about, nip05' // Primary key and indexed props users: '++pubkey, name, display_name, picture, nip05' // Primary key and indexed props
}); });
} }
} }

View File

@ -38,8 +38,8 @@ const UserItem = ({ pubkey, display_name, picture, nip05, ...rest }: User) => {
) )
} }
function normalizeUser({ pubkey, about, nip05, name, display_name }: User) { function normalizeUser({ pubkey, picture, nip05, name, display_name }: User) {
return { pubkey, about, nip05, name, display_name } return { pubkey, nip05, name, picture, display_name }
} }
const Textarea = ({ users, onChange, ...rest }: any) => { const Textarea = ({ users, onChange, ...rest }: any) => {

View File

@ -74,7 +74,6 @@ const UsersSlice = createSlice({
display_name: x.display_name, display_name: x.display_name,
nip05: x.nip05, nip05: x.nip05,
picture: x.picture, picture: x.picture,
about: x.about,
}) })
state.users = { state.users = {