Use cached user ids while likes is loading
This commit is contained in:
parent
a0402830c5
commit
74c9406191
|
@ -43,7 +43,8 @@ export function LikeMarketButton(props: {
|
||||||
<HeartIcon
|
<HeartIcon
|
||||||
className={clsx(
|
className={clsx(
|
||||||
'h-6 w-6',
|
'h-6 w-6',
|
||||||
likedContractIds?.includes(contract.id)
|
likedContractIds?.includes(contract.id) ||
|
||||||
|
(!likes && contract.likedByUserIds?.includes(user.id))
|
||||||
? 'fill-red-500 text-red-500'
|
? 'fill-red-500 text-red-500'
|
||||||
: ''
|
: ''
|
||||||
)}
|
)}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user