Skip to content

Commit e756cdf

Browse files
committed
fix: 로그인하지 않은 사용자가 샵 컴포넌트 사용 시 브라우저 응답 불능이 되는 문제 수정
1 parent 5736c9e commit e756cdf

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@ export const CustomerInfoFormDialog: React.FC<CustomerInfoFormDialogPropsType> =
3333
const shopAPIClient = ShopHooks.useShopClient();
3434
const { data: userInfo } = ShopHooks.useUserStatus(shopAPIClient);
3535

36-
if (!userInfo) {
37-
closeFunc();
38-
return;
39-
}
40-
4136
const onSubmitFunc: React.MouseEventHandler<HTMLButtonElement> = (e) => {
4237
e.preventDefault();
4338
e.stopPropagation();
@@ -76,7 +71,7 @@ export const CustomerInfoFormDialog: React.FC<CustomerInfoFormDialogPropsType> =
7671
<TextField
7772
name="email"
7873
label={emailLabelStr}
79-
defaultValue={defaultValue?.email || userInfo.data.user.email}
74+
defaultValue={defaultValue?.email || userInfo?.data.user.email}
8075
type="email"
8176
required
8277
fullWidth

0 commit comments

Comments
 (0)