Skip to content

Commit

Permalink
chore: satisfy prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
adhorodyski committed Sep 22, 2023
1 parent 3b2e02c commit 4c5c73c
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions src/pages/EnablePayments/OnfidoStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const defaultProps = {

function OnfidoStep({walletOnfidoData}) {
const {translate} = useLocalize();

const shouldShowOnfido = walletOnfidoData.hasAcceptedPrivacyPolicy && !walletOnfidoData.isLoading && !walletOnfidoData.error && walletOnfidoData.sdkToken;

const goBack = useCallback(() => {
Expand All @@ -43,14 +43,17 @@ function OnfidoStep({walletOnfidoData}) {
Growl.error(translate('onfidoStep.genericError'), 10000);
}, [translate]);

const verifyIdentity = useCallback((data) => {
BankAccounts.verifyIdentity({
onfidoData: JSON.stringify({
...data,
applicantID: walletOnfidoData.applicantID,
}),
});
}, [walletOnfidoData.applicantID]);
const verifyIdentity = useCallback(
(data) => {
BankAccounts.verifyIdentity({
onfidoData: JSON.stringify({
...data,
applicantID: walletOnfidoData.applicantID,
}),
});
},
[walletOnfidoData.applicantID],
);

return (
<>
Expand Down

0 comments on commit 4c5c73c

Please sign in to comment.