From 91c8893e6f79797d21ca2bd38b556edf9c81373d Mon Sep 17 00:00:00 2001 From: bunsenstraat Date: Tue, 16 Jul 2024 09:08:06 +0200 Subject: [PATCH] hide repo name --- libs/remix-ui/git/src/components/branchHeader.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: