From b201865776316017d2284265164a12ecb4f9addc Mon Sep 17 00:00:00 2001 From: jiohjung98 Date: Sun, 9 Jun 2024 21:48:41 +0900 Subject: [PATCH] fix: build error --- src/components/map/BranchInfo.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/map/BranchInfo.tsx b/src/components/map/BranchInfo.tsx index 38106d5..5997d0b 100644 --- a/src/components/map/BranchInfo.tsx +++ b/src/components/map/BranchInfo.tsx @@ -33,7 +33,7 @@ const BranchInfo: React.FC = () => { const [activeTab, setActiveTab] = useState('meetingRoom'); - const imagePrefix = branchImage.replace('.png', ''); + const imagePrefix = (branchImage || '').replace('.png', ''); console.log(branchId); console.log(numericBranchId)