File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
packages/shop/src/components/common Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments