From a60fcd65b59f744ae6d04a79aeddc4a02ce80c63 Mon Sep 17 00:00:00 2001 From: artur Date: Fri, 16 Feb 2024 15:29:06 +0300 Subject: [PATCH] Show app npub if app only has url --- src/pages/AppPage/App.Page.tsx | 2 +- src/pages/KeyPage/components/ItemApp.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/AppPage/App.Page.tsx b/src/pages/AppPage/App.Page.tsx index c293257..3410255 100644 --- a/src/pages/AppPage/App.Page.tsx +++ b/src/pages/AppPage/App.Page.tsx @@ -46,7 +46,7 @@ const AppPage = () => { const shortAppNpub = getShortenNpub(appNpub) const appName = name || appDomain || shortAppNpub const appAvatarTitle = getAppIconTitle(name || appDomain, appNpub) - const isAppNameExists = !!name + const isAppNameExists = !!name || !!appDomain const { timestamp } = connectPerm || {} const connectedOn = connectPerm && timestamp ? `Connected at ${formatTimestampDate(timestamp)}` : 'Not connected' diff --git a/src/pages/KeyPage/components/ItemApp.tsx b/src/pages/KeyPage/components/ItemApp.tsx index 8ce2dea..586aefa 100644 --- a/src/pages/KeyPage/components/ItemApp.tsx +++ b/src/pages/KeyPage/components/ItemApp.tsx @@ -13,7 +13,7 @@ export const ItemApp: FC = ({ npub, appNpub, icon, name, url }) => const appName = name || appDomain || shortAppNpub const appIcon = icon || `https://${appDomain}/favicon.ico` const appAvatarTitle = getAppIconTitle(name || appDomain, appNpub) - const isAppNameExists = !!name + const isAppNameExists = !!name || !!appDomain return (