fix types
This commit is contained in:
parent
84f3353e34
commit
8bc81b4880
@ -69,6 +69,6 @@ export const load = async ({ params, locals, setHeaders }) => {
|
||||
getWhyPriceMoved,
|
||||
getOneDayPrice,
|
||||
getUserWatchlist,
|
||||
companyName: cleanString(getETFProfile?.[0]?.name),
|
||||
companyName: cleanString(getETFProfile?.at(0)?.name),
|
||||
};
|
||||
};
|
||||
@ -41,7 +41,7 @@ const fetchCommunitySentiment = async (pb, ticker, cookies) => {
|
||||
|
||||
return {
|
||||
alreadyVoted: cookieVote || null,
|
||||
sentimentData: output[0] || {}
|
||||
sentimentData: output?.at(0) || {}
|
||||
};
|
||||
};
|
||||
|
||||
@ -80,6 +80,6 @@ export const load = async ({ params, locals, cookies, setHeaders }) => {
|
||||
getOneDayPrice,
|
||||
getUserWatchlist,
|
||||
getCommunitySentiment,
|
||||
companyName: cleanString(getStockDeck?.[0]?.companyName),
|
||||
companyName: cleanString(getStockDeck?.at(0)?.companyName),
|
||||
};
|
||||
};
|
||||
Loading…
x
Reference in New Issue
Block a user