diff --git a/net/web/src/context/useCardContext.hook.js b/net/web/src/context/useCardContext.hook.js index 82bbfd23..990fc67f 100644 --- a/net/web/src/context/useCardContext.hook.js +++ b/net/web/src/context/useCardContext.hook.js @@ -264,6 +264,13 @@ export function useCardContext() { } return getCardImageUrl(access.current, cardId, card.data.profileRevision) }, + getName: (cardId) => { + let card = cards.current.get(cardId); + if (!card) { + return null; + } + return card.data.cardProfile.name; + }, removeChannel: async (cardId, channelId) => { let { cardProfile, cardDetail } = cards.current.get(cardId).data; let token = cardProfile.guid + '.' + cardDetail.token; diff --git a/net/web/src/session/Session.jsx b/net/web/src/session/Session.jsx index 6d838d9a..c4cdaead 100644 --- a/net/web/src/session/Session.jsx +++ b/net/web/src/session/Session.jsx @@ -80,7 +80,9 @@ export function Session() {