Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kowczarz committed Aug 17, 2023
1 parent 21dd01d commit 208b555
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pages/ReimbursementAccount/CompanyStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const defaultProps = {
policyID: '',
};

function CompanyStep ({reimbursementAccount, reimbursementAccountDraft, getDefaultStateForField, onBackButtonPress, translate, session, user, policyID}) {
function CompanyStep({reimbursementAccount, reimbursementAccountDraft, getDefaultStateForField, onBackButtonPress, translate, session, user, policyID}) {
/**
* @param {Array} fieldNames
*
Expand All @@ -66,7 +66,7 @@ function CompanyStep ({reimbursementAccount, reimbursementAccountDraft, getDefau
};
}

const defaultWebsite = useMemo(() => lodashGet(user, 'isFromPublicDomain', false) ? 'https://' : `https://www.${Str.extractEmailDomain(session.email, '')}`, [user, session]);
const defaultWebsite = useMemo(() => (lodashGet(user, 'isFromPublicDomain', false) ? 'https://' : `https://www.${Str.extractEmailDomain(session.email, '')}`), [user, session]);

/**
* @param {Object} values - form input values passed by the Form component
Expand Down Expand Up @@ -126,7 +126,7 @@ function CompanyStep ({reimbursementAccount, reimbursementAccountDraft, getDefau
}

return errors;
}
};

const submit = (values) => {
const bankAccount = {
Expand All @@ -142,7 +142,7 @@ function CompanyStep ({reimbursementAccount, reimbursementAccountDraft, getDefau
};

BankAccounts.updateCompanyInformationForBankAccount(bankAccount, policyID);
}
};

const bankAccountID = lodashGet(reimbursementAccount, 'achData.bankAccountID', 0);
const shouldDisableCompanyName = Boolean(bankAccountID && getDefaultStateForField('companyName'));
Expand Down

0 comments on commit 208b555

Please sign in to comment.