Skip to content

Commit

Permalink
fix: error displayed for MF account creation
Browse files Browse the repository at this point in the history
  • Loading branch information
likhith-deriv committed Aug 10, 2023
1 parent 1fe8ad1 commit 65af35c
Showing 1 changed file with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,12 +273,16 @@ const AccountWizard = props => {
props.onFinishSuccess(response.new_account_real.currency.toLowerCase());
}
const country_code = props.account_settings.citizen || props.residence;
const idv_form_data = form_values();
const idv_submit_data = {
identity_verification_document_add: 1,
...formatIDVFormValues(idv_form_data, country_code),
};
await WS.send(idv_submit_data);
/**
* If IDV details are present, then submit IDV details
*/
if (form_data.document_type) {
const idv_submit_data = {
identity_verification_document_add: 1,
...formatIDVFormValues(form_data, country_code),
};
await WS.send(idv_submit_data);
}
})
.catch(error => {
if (error.code === 'show risk disclaimer') {
Expand Down

0 comments on commit 65af35c

Please sign in to comment.