Fix key error in tooltip

This commit is contained in:
Matthew Stratford 2021-01-27 01:49:56 +00:00
parent 80e8f06b5c
commit f71ce564fb
2 changed files with 3 additions and 3 deletions

View file

@ -69,6 +69,7 @@ export function timestampToDateTime(timestamp: number) {
return str; return str;
} }
// Cheers :) https://overreacted.io/making-setinterval-declarative-with-react-hooks/
export function useInterval(callback: Function, delay: number) { export function useInterval(callback: Function, delay: number) {
const savedCallback = useRef<Function>(); const savedCallback = useRef<Function>();

View file

@ -490,10 +490,9 @@ const Showplanner: React.FC<{ timeslotId: number }> = function({ timeslotId }) {
.split("¬") .split("¬")
.map((t) => t.split(/:(.+)/)) .map((t) => t.split(/:(.+)/))
.map((t) => ( .map((t) => (
<> <div key={t[0]}>
<strong>{t[0]}:</strong> {t[1]} <strong>{t[0]}:</strong> {t[1]}
<hr /> </div>
</>
))} ))}
</> </>
)} )}