bug: interaction cache lookup

This commit is contained in:
Kieran 2023-04-25 14:09:00 +01:00
parent 816aa3b838
commit 1dcf15ceeb
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ export function useInteractionCache(pubkey?: HexKey, event?: u256) {
const data =
useSyncExternalStore(
c => InteractionCache.hook(c, id),
() => InteractionCache.snapshot()[0]
() => InteractionCache.snapshot().find(a => a.id === id)
) || EmptyInteraction;
return {
data: data,