diff --git a/src/pages/workspace/accounting/xero/export/XeroBankAccountSelectPage.tsx b/src/pages/workspace/accounting/xero/export/XeroBankAccountSelectPage.tsx index ebb4a1a4f214..a8a7eb10b0e0 100644 --- a/src/pages/workspace/accounting/xero/export/XeroBankAccountSelectPage.tsx +++ b/src/pages/workspace/accounting/xero/export/XeroBankAccountSelectPage.tsx @@ -28,9 +28,8 @@ function XeroBankAccountSelectPage({policy}: WithPolicyConnectionsProps) { const {config} = policy?.connections?.xero ?? {}; const {bankAccounts} = policy?.connections?.xero?.data ?? {}; - - // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing nonReimbursableAccount is an empty string so we cannot use `??` const xeroSelectorOptions = useMemo( + // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing () => getXeroBankAccounts(policy ?? undefined, config?.export?.nonReimbursableAccount || bankAccounts?.[0]?.id), [config?.export?.nonReimbursableAccount, policy, bankAccounts], );