From 02af127869458adc147902baf2eb2d599b5fc7e7 Mon Sep 17 00:00:00 2001 From: Alejandro Gomez Date: Sun, 15 Jan 2023 13:26:21 +0100 Subject: [PATCH] fix: store pic urls --- src/db.ts | 2 +- src/element/Textarea.tsx | 4 ++-- src/state/Users.js | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/db.ts b/src/db.ts index a2028cb6..203982d2 100644 --- a/src/db.ts +++ b/src/db.ts @@ -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 }); } } diff --git a/src/element/Textarea.tsx b/src/element/Textarea.tsx index 35a75d1a..35d591eb 100644 --- a/src/element/Textarea.tsx +++ b/src/element/Textarea.tsx @@ -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) => { diff --git a/src/state/Users.js b/src/state/Users.js index efa074c8..5f334b12 100644 --- a/src/state/Users.js +++ b/src/state/Users.js @@ -74,7 +74,6 @@ const UsersSlice = createSlice({ display_name: x.display_name, nip05: x.nip05, picture: x.picture, - about: x.about, }) state.users = {