fix types

This commit is contained in:
MuslemRahimi 2024-08-28 20:45:12 +02:00
parent 84f3353e34
commit 8bc81b4880
2 changed files with 3 additions and 3 deletions

View File

@ -69,6 +69,6 @@ export const load = async ({ params, locals, setHeaders }) => {
getWhyPriceMoved, getWhyPriceMoved,
getOneDayPrice, getOneDayPrice,
getUserWatchlist, getUserWatchlist,
companyName: cleanString(getETFProfile?.[0]?.name), companyName: cleanString(getETFProfile?.at(0)?.name),
}; };
}; };

View File

@ -41,7 +41,7 @@ const fetchCommunitySentiment = async (pb, ticker, cookies) => {
return { return {
alreadyVoted: cookieVote || null, alreadyVoted: cookieVote || null,
sentimentData: output[0] || {} sentimentData: output?.at(0) || {}
}; };
}; };
@ -80,6 +80,6 @@ export const load = async ({ params, locals, cookies, setHeaders }) => {
getOneDayPrice, getOneDayPrice,
getUserWatchlist, getUserWatchlist,
getCommunitySentiment, getCommunitySentiment,
companyName: cleanString(getStockDeck?.[0]?.companyName), companyName: cleanString(getStockDeck?.at(0)?.companyName),
}; };
}; };