diff --git a/net/web/src/session/contact/useContact.hook.js b/net/web/src/session/contact/useContact.hook.js index e63c4c96..56284a96 100644 --- a/net/web/src/session/contact/useContact.hook.js +++ b/net/web/src/session/contact/useContact.hook.js @@ -52,13 +52,12 @@ export function useContact(guid, listing, close) { updateState({ logo, name, location, description, handle, node, status, cardId }); } else if (listing) { - const { imageSet, name, location, description, handle, node } = listing; - const logo = imageSet ? getListingImageUrl(node, guid) : null; + const { logo, name, location, description, handle, node } = listing; updateState({ logo, name, location, description, handle, node, status: 'unsaved', cardId: null }); } else { updateState({ logo: null, name: null, cardId: null, location: null, description: null, handle: null, - node: null, status: null }); + status: null }); } // eslint-disable-next-line }, [card.state, guid, listing]); diff --git a/net/web/src/session/listing/useListing.hook.js b/net/web/src/session/listing/useListing.hook.js index ab7fc2b7..c396ccd0 100644 --- a/net/web/src/session/listing/useListing.hook.js +++ b/net/web/src/session/listing/useListing.hook.js @@ -53,6 +53,7 @@ export function useListing() { logo: item.imageSet ? getListingImageUrl(state.node, item.guid) : null, name: item.name, handle: item.handle, + node: item.node, }; }); const sorted = contacts.sort((a, b) => {