diff --git a/src/const.ts b/src/const.ts index 7ddc519..da1b40c 100644 --- a/src/const.ts +++ b/src/const.ts @@ -9,6 +9,9 @@ export const USER_CARDS = 17_777 as EventKind; export const CARD = 37_777 as EventKind; export const MUTED = 10_000 as EventKind; +export const DAY = 60 * 60 * 24; +export const WEEK = 7 * DAY; + export const defaultRelays = { "wss://relay.snort.social": { read: true, write: true }, "wss://nos.lol": { read: true, write: true }, diff --git a/src/element/Event.tsx b/src/element/Event.tsx index 28044fd..c9160fb 100644 --- a/src/element/Event.tsx +++ b/src/element/Event.tsx @@ -13,7 +13,7 @@ interface EventProps { export function Event({ link }: EventProps) { const event = useEvent(link); - if (event && event.kind === GOAL) { + if (event?.kind === GOAL) { return (
{description}
+ )} +awarded to
+