diff --git a/src/admin/insights/AdminAppInsightsClient.tsx b/src/admin/insights/AdminAppInsightsClient.tsx index 3e5fc375..d8aa91d4 100644 --- a/src/admin/insights/AdminAppInsightsClient.tsx +++ b/src/admin/insights/AdminAppInsightsClient.tsx @@ -123,8 +123,8 @@ export default function AdminAppInsightsClient({ <> {(codeMeta || debug) && <> - {codeMeta?.didError - ? } - /> - : <> - {(noFork || debug) && - } - content="This template is not forked" - expandContent={<> - - Fork original template - - {' '} - to receive the latest fixes and features. - {' '} - Additional instructions in - {' '} - {readmeAnchor('receiving-updates')}. - } - />} - {(forkBehind || debug) && } - content={<> - This fork is - {' '} - {renderHighlightText( - pluralize(codeMeta?.behindBy ?? DEBUG_BEHIND_BY, 'commit'), - 'blue', - )} - {' '} - behind - } - expandContent={<> - - Sync your fork - - {' '} - to receive the latest fixes and features. - } + />} + {((!codeMeta?.didError && noFork) || debug) && + } + content="This template is not forked" + expandContent={<> + + Fork original template + + {' '} + to receive the latest fixes and features. + {' '} + Additional instructions in + {' '} + {readmeAnchor('receiving-updates')}. + } + />} + {((!codeMeta?.didError && forkBehind) || debug) && } + content={<> + This fork is + {' '} + {renderHighlightText( + pluralize(codeMeta?.behindBy ?? DEBUG_BEHIND_BY, 'commit'), + 'blue', + )} + {' '} + behind } + expandContent={<> + + Sync your fork + + {' '} + to receive the latest fixes and features. + } + />} } content={