Skip to content

Commit 2b9a950

Browse files
committed
refactor: import 경로 수정 및 펜딩 상태 처리
1 parent 730c74d commit 2b9a950

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/app/orders/[orderId]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Image from 'next/image';
33
import Link from 'next/link';
44
import { getOrderDetail } from '@/app/actions/order';
55
import { CloseButton } from '@/components/ui/close-button';
6-
import { notFound } from 'next/dist/client/components/navigation';
6+
import { notFound } from 'next/navigation';
77

88
export const metadata: Metadata = {
99
title: '주문 상세 | OnGil',

src/hooks/use-wishlist.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export function useWishlist({
3232
);
3333

3434
const toggle = () => {
35+
if (isPending) return;
3536
const previousState = optimisticState;
3637
const nextIsLiked = !previousState.isLiked;
3738

0 commit comments

Comments
 (0)