Use cached user ids while likes is loading

This commit is contained in:
Ian Philips 2022-08-30 09:52:14 -06:00
parent a0402830c5
commit 74c9406191

View File

@ -43,7 +43,8 @@ export function LikeMarketButton(props: {
<HeartIcon
className={clsx(
'h-6 w-6',
likedContractIds?.includes(contract.id)
likedContractIds?.includes(contract.id) ||
(!likes && contract.likedByUserIds?.includes(user.id))
? 'fill-red-500 text-red-500'
: ''
)}