reactive zaps

This commit is contained in:
Alejandro Gomez 2023-07-08 00:02:25 +02:00
parent 33e0e454f9
commit b21adc94d9
No known key found for this signature in database
GPG Key ID: 4DF39E566658C817
2 changed files with 3 additions and 1 deletions

View File

@ -148,7 +148,8 @@ export function Goal({ goal, isDetail = false, ...rest }) {
].flat();
const { events: zapEvents, eose } = useEvents(
filters,
getRelays(goal) || defaultRelays
getRelays(goal) || defaultRelays,
{ closeOnEose: false }
);
const { zappers, total } = useZapsSummary(zapEvents, pubkey);
const progress = (total / amount) * 100;

View File

@ -48,6 +48,7 @@ export default function HomeContent() {
Check out some of the existing goals and create your own!
</Text>
<Grid
mt={4}
alignItems="flex-start"
justifyContent="center"
templateColumns={{