diff --git a/libs/remix-ui/git/src/components/branchHeader.tsx b/libs/remix-ui/git/src/components/branchHeader.tsx index 2c6b635921..8ec568528d 100644 --- a/libs/remix-ui/git/src/components/branchHeader.tsx +++ b/libs/remix-ui/git/src/components/branchHeader.tsx @@ -48,7 +48,7 @@ export const BranchHeader = () => { if (!url) return const regex = /https:\/\/github\.com\/[^/]+\/([^/]+)\.git/ const match = url.match(regex) - return match ? match[1] : 'Couldn\'t get repo name!' + return match ? match[1] : null } const showDetachedWarningText = async () => { @@ -63,7 +63,7 @@ export const BranchHeader = () => {
- {getName() !== "Couldn't get repo name!" ? ( + {getName() ? (
Repository Name: