diff --git a/src/hooks/usePayoffLenders.tsx b/src/hooks/usePayoffLenders.tsx index ad6a9e8..d42546e 100644 --- a/src/hooks/usePayoffLenders.tsx +++ b/src/hooks/usePayoffLenders.tsx @@ -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 } }