From fbcd74aface8a33d52c832dd61d2f2ea3c80855c Mon Sep 17 00:00:00 2001 From: Chris Risner Date: Wed, 4 Oct 2023 11:52:24 -0500 Subject: [PATCH] corrected variable type payoffLenders --- src/hooks/usePayoffLenders.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } }