Skip to content

Commit 8678f61

Browse files
committed
chore: fix unable to submit issue
1 parent 467ecaf commit 8678f61

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/core/src/App/Containers/RealAccountSignup/account-wizard.jsx

+6
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ const AccountWizard = observer(props => {
6262
});
6363
const { selected_phone_code } = useGetPhoneNumberList();
6464

65+
const is_phone_number_required = client.account_settings.immutable_fields.includes('phone');
66+
6567
const { is_eu_user } = traders_hub;
6668

6769
const modifiedProps = {
@@ -322,6 +324,10 @@ const AccountWizard = observer(props => {
322324
delete clone?.confirmation_checkbox;
323325
delete clone?.calling_country_code;
324326

327+
if (is_phone_number_required && clone?.phone) {
328+
delete clone.phone;
329+
}
330+
325331
if (is_residence_self_declaration_required && clone?.resident_self_declaration)
326332
clone.resident_self_declaration = 1;
327333
else delete clone.resident_self_declaration;

0 commit comments

Comments
 (0)