Skip to content

Commit 137f001

Browse files
committed
fix: 바뀐 hook 구조로 SignInGuard가 동작하지 않는 문제 수정
1 parent 0d9c8f1 commit 137f001

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/shop/src/components/common/signin_guard.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ type SignInGuardProps = {
1111
};
1212

1313
const InnerSignInGuard: React.FC<SignInGuardProps> = ({ children, fallback }) => {
14-
const { data } = ShopHooks.useUserStatus();
14+
const shopAPIClient = ShopHooks.useShopClient();
15+
const { data } = ShopHooks.useUserStatus(shopAPIClient);
1516
const renderedFallback = fallback || <Typography variant="h6" gutterBottom>로그인 후 이용해주세요.</Typography>;
1617
return data?.meta?.is_authenticated === true ? children : renderedFallback;
1718
};

0 commit comments

Comments
 (0)