Commit 8678f61 1 parent 467ecaf commit 8678f61 Copy full SHA for 8678f61
File tree 1 file changed +6
-0
lines changed
packages/core/src/App/Containers/RealAccountSignup
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,8 @@ const AccountWizard = observer(props => {
62
62
} ) ;
63
63
const { selected_phone_code } = useGetPhoneNumberList ( ) ;
64
64
65
+ const is_phone_number_required = client . account_settings . immutable_fields . includes ( 'phone' ) ;
66
+
65
67
const { is_eu_user } = traders_hub ;
66
68
67
69
const modifiedProps = {
@@ -322,6 +324,10 @@ const AccountWizard = observer(props => {
322
324
delete clone ?. confirmation_checkbox ;
323
325
delete clone ?. calling_country_code ;
324
326
327
+ if ( is_phone_number_required && clone ?. phone ) {
328
+ delete clone . phone ;
329
+ }
330
+
325
331
if ( is_residence_self_declaration_required && clone ?. resident_self_declaration )
326
332
clone . resident_self_declaration = 1 ;
327
333
else delete clone . resident_self_declaration ;
You can’t perform that action at this time.
0 commit comments