Skip to content

Commit

Permalink
fix: poi submit mt5 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
“yauheni-kryzhyk-deriv” committed May 17, 2023
1 parent 0b7e9a3 commit 1b5f346
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
/* eslint-disable react-hooks/exhaustive-deps */
import React from 'react';
import { WS, IDV_NOT_APPLICABLE_OPTION, makeSettingsRequest } from '@deriv/shared';
import { WS, IDV_NOT_APPLICABLE_OPTION } from '@deriv/shared';
import Unsupported from 'Components/poi/status/unsupported';
import OnfidoUpload from './onfido-sdk-view-container';
import { identity_status_codes, submission_status_code, service_code } from './proof-of-identity-utils';
import { IdvDocSubmitOnSignup } from 'Components/poi/poi-form-on-signup/idv-doc-submit-on-signup/idv-doc-submit-on-signup';
import { AutoHeightWrapper } from '@deriv/components';
import { makeSettingsRequest } from 'Helpers/utils';

const POISubmissionForMT5 = ({
account_settings,
Expand Down Expand Up @@ -66,8 +67,9 @@ const POISubmissionForMT5 = ({
return;
}
const get_settings = WS.authorized.storage.getSettings();

if (get_settings.error) {
setErrors({ error_message: data.error.message });
setErrors({ error_message: get_settings.error.message });
setSubmitting(false);
return;
}
Expand Down

0 comments on commit 1b5f346

Please sign in to comment.