fixing remote contact connection

This commit is contained in:
Roland Osborne 2023-01-28 11:25:09 -08:00
parent 831c5506bc
commit 11da57d59f
2 changed files with 3 additions and 3 deletions

View File

@ -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]);

View File

@ -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) => {