fix: store pic urls
This commit is contained in:
parent
5b69b2f7b0
commit
02af127869
@ -8,7 +8,7 @@ export class SnortDB extends Dexie {
|
||||
constructor() {
|
||||
super('snortDB');
|
||||
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
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -38,8 +38,8 @@ const UserItem = ({ pubkey, display_name, picture, nip05, ...rest }: User) => {
|
||||
)
|
||||
}
|
||||
|
||||
function normalizeUser({ pubkey, about, nip05, name, display_name }: User) {
|
||||
return { pubkey, about, nip05, name, display_name }
|
||||
function normalizeUser({ pubkey, picture, nip05, name, display_name }: User) {
|
||||
return { pubkey, nip05, name, picture, display_name }
|
||||
}
|
||||
|
||||
const Textarea = ({ users, onChange, ...rest }: any) => {
|
||||
|
@ -74,7 +74,6 @@ const UsersSlice = createSlice({
|
||||
display_name: x.display_name,
|
||||
nip05: x.nip05,
|
||||
picture: x.picture,
|
||||
about: x.about,
|
||||
})
|
||||
|
||||
state.users = {
|
||||
|
Loading…
Reference in New Issue
Block a user