From f71ce564fb176b81538832ef29b9beffa6109362 Mon Sep 17 00:00:00 2001 From: Matthew Stratford Date: Wed, 27 Jan 2021 01:49:56 +0000 Subject: [PATCH] Fix key error in tooltip --- src/lib/utils.ts | 1 + src/showplanner/index.tsx | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/utils.ts b/src/lib/utils.ts index 199c348..8a25f55 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -69,6 +69,7 @@ export function timestampToDateTime(timestamp: number) { return str; } +// Cheers :) https://overreacted.io/making-setinterval-declarative-with-react-hooks/ export function useInterval(callback: Function, delay: number) { const savedCallback = useRef(); diff --git a/src/showplanner/index.tsx b/src/showplanner/index.tsx index 3af7759..cc5c6de 100644 --- a/src/showplanner/index.tsx +++ b/src/showplanner/index.tsx @@ -490,10 +490,9 @@ const Showplanner: React.FC<{ timeslotId: number }> = function({ timeslotId }) { .split("¬") .map((t) => t.split(/:(.+)/)) .map((t) => ( - <> +
{t[0]}: {t[1]} -
- +
))} )}