Skip to content

Commit

Permalink
fix: added default value
Browse files Browse the repository at this point in the history
  • Loading branch information
barttom committed Jan 12, 2024
1 parent 77bb056 commit a61e206
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const validate = (values: FormValues): OnyxCommon.Errors => {
function TaxIdBusiness({reimbursementAccount, onNext, isEditing}: TaxIdBusinessProps) {
const {translate} = useLocalize();
const styles = useThemeStyles();
const defaultCompanyTaxId = reimbursementAccount?.achData?.companyTaxID;
const defaultCompanyTaxId = reimbursementAccount?.achData?.companyTaxID ?? '';
const bankAccountID = reimbursementAccount?.achData?.bankAccountID ?? 0;

const shouldDisableCompanyTaxID = Boolean(bankAccountID && defaultCompanyTaxId);
Expand Down

0 comments on commit a61e206

Please sign in to comment.