Fixes infinite loop

fix/allow-self-event-editing
zomars 2022-05-17 10:52:45 -06:00
parent 84967e5cdf
commit 1c4d2fae56
1 changed files with 2 additions and 1 deletions

View File

@ -200,7 +200,8 @@ export default function Success(props: SuccessProps) {
});
setDate(date.tz(localStorage.getItem("timeOption.preferredTimeZone") || dayjs.tz.guess()));
setIs24h(!!localStorage.getItem("timeOption.is24hClock"));
}, [date, eventType, needsConfirmation]);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [eventType, needsConfirmation]);
function eventLink(): string {
const optional: { location?: string } = {};