Skip to content

Commit

Permalink
Merge pull request #174 from depromeet/fix/#173
Browse files Browse the repository at this point in the history
음식점명 안넘어가는 버그 수정
  • Loading branch information
sjoleee authored Jan 29, 2024
2 parents fd6deb6 + 991e50a commit 3b77799
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ export default function Home() {
>
{selectedPin ? (
<StorePreviewSection
storeName={selectedPin.storeName}
lat={selectedPin.lat}
lng={selectedPin.lng}
storeId={selectedPin.storeId}
Expand Down
8 changes: 5 additions & 3 deletions src/components/main/StorePreviewSection/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export interface SearchedPinFromSearchParams {
}

interface StorePreviewSectionProps {
storeName?: string;
storeId?: number;
kakaoStoreId?: number;
lat: number;
Expand All @@ -31,7 +30,6 @@ interface StorePreviewSectionProps {
}

function StorePreviewSection({
storeName,
storeId,
kakaoStoreId,
lat,
Expand Down Expand Up @@ -84,7 +82,11 @@ function StorePreviewSection({
)}
<div className="flex gap-[8px] p-[16px]">
<WriteLogButton
storeName={storeName}
storeName={
storeData?.storeName ??
searchedPinFromSearchParams?.storeName ??
''
}
storeId={storeData?.storeId ?? null}
myRevisitedCount={storeData?.myRevisitedCount ?? 0}
searchedPinFromSearchParams={searchedPinFromSearchParams}
Expand Down

0 comments on commit 3b77799

Please sign in to comment.