Skip to content

Commit 83a8ad4

Browse files
correct query for quote data
1 parent f4e978c commit 83a8ad4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/quote/Quote.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ const Quote = () => {
2626

2727
useEffect(() => {
2828
const parsedStorageData = getItemFromSessionStorage()
29-
setQuote(parsedStorageData?.quote || [])
29+
setQuote(parsedStorageData?.quote || null)
3030

31-
if (!parsedStorageData?.quote?.length) {
31+
if (!parsedStorageData?.quote) {
3232
loadQuote()
3333
}
3434
}, [loadQuote])

0 commit comments

Comments
 (0)