Skip to content

Commit

Permalink
fix lint and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
twilight2294 authored Nov 24, 2024
1 parent 33fa796 commit 71d18bd
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<SelectorType[]>(
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
() => getXeroBankAccounts(policy ?? undefined, config?.export?.nonReimbursableAccount || bankAccounts?.[0]?.id),
[config?.export?.nonReimbursableAccount, policy, bankAccounts],
);
Expand Down

0 comments on commit 71d18bd

Please sign in to comment.