We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d9c8f1 commit 137f001Copy full SHA for 137f001
1 file changed
packages/shop/src/components/common/signin_guard.tsx
@@ -11,7 +11,8 @@ type SignInGuardProps = {
11
};
12
13
const InnerSignInGuard: React.FC<SignInGuardProps> = ({ children, fallback }) => {
14
- const { data } = ShopHooks.useUserStatus();
+ const shopAPIClient = ShopHooks.useShopClient();
15
+ const { data } = ShopHooks.useUserStatus(shopAPIClient);
16
const renderedFallback = fallback || <Typography variant="h6" gutterBottom>로그인 후 이용해주세요.</Typography>;
17
return data?.meta?.is_authenticated === true ? children : renderedFallback;
18
0 commit comments