Skip to content

Commit

Permalink
corrected variable type payoffLenders
Browse files Browse the repository at this point in the history
  • Loading branch information
crisner1978 committed Oct 4, 2023
1 parent f2b65d5 commit fbcd74a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/usePayoffLenders.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ const usePayoffLenders = () => {
}
}, [isTrade])

const lenderCats = lenders?.length > 0 && [
const lenderCats = lenders?.length > 0 ? [
{ value: '', optionName: 'Select' },
{ value: 'idk', optionName: "I don't know" },
{ value: 'other', optionName: 'Other' },
...lenders?.map((item) => ({ value: item.fsId, optionName: item.fsName })),
]
] : []

return { lenders, lenderCats, isTrade, setTrade }
}
Expand Down

0 comments on commit fbcd74a

Please sign in to comment.