From 71d18bdd909fb43347e11fe371d6d3f6433987e6 Mon Sep 17 00:00:00 2001 From: Rutika Pawar <183392827+twilight2294@users.noreply.github.com> Date: Sun, 24 Nov 2024 21:38:45 +0530 Subject: [PATCH] fix lint and comment --- .../accounting/xero/export/XeroBankAccountSelectPage.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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], );