From ed5c5b9de9cd766e455fdf151125b86fa0e76b5a Mon Sep 17 00:00:00 2001 From: KoalaSat Date: Fri, 10 Mar 2023 19:50:49 +0100 Subject: [PATCH] fix list --- .../Pages/ProfileLoadPage/FirstStep/index.tsx | 4 +- .../ProfileLoadPage/SecondStep/index.tsx | 4 +- .../Pages/ProfileLoadPage/ThirdStep/index.tsx | 2 +- frontend/Pages/ProfileLoadPage/index.tsx | 8 +--- frontend/Pages/RelaysPage/index.tsx | 39 +++++++++---------- 5 files changed, 24 insertions(+), 33 deletions(-) diff --git a/frontend/Pages/ProfileLoadPage/FirstStep/index.tsx b/frontend/Pages/ProfileLoadPage/FirstStep/index.tsx index de5e63c..130e4a5 100644 --- a/frontend/Pages/ProfileLoadPage/FirstStep/index.tsx +++ b/frontend/Pages/ProfileLoadPage/FirstStep/index.tsx @@ -74,9 +74,7 @@ export const FirstStep: React.FC = ({ nextStep }) => { relays.forEach((relay) => { removeRelayItem(relay) }) - metadata.tags.forEach( - async (tag) => await addRelayItem({ url: tag[1], paid: tag[3] === 'paid' ? 1 : 0 }), - ) + metadata.tags.forEach(async (tag) => await addRelayItem({ url: tag[1] })) nextStep() } } diff --git a/frontend/Pages/ProfileLoadPage/SecondStep/index.tsx b/frontend/Pages/ProfileLoadPage/SecondStep/index.tsx index 4c229c9..e92cc2b 100644 --- a/frontend/Pages/ProfileLoadPage/SecondStep/index.tsx +++ b/frontend/Pages/ProfileLoadPage/SecondStep/index.tsx @@ -77,7 +77,7 @@ export const SecondStep: React.FC = ({ nextStep }) => { if (results.length > 0) { setContactsCount(results.filter((user) => user.contact).length) const authors = [...results.map((user: User) => user.id)] - relayPool?.subscribe('profile-load-notes', [ + relayPool?.subscribe('profile-load-contacts', [ { kinds: [Kind.Metadata, 10002], authors, @@ -156,7 +156,7 @@ export const SecondStep: React.FC = ({ nextStep }) => { -