Fixes infinite loop
This commit is contained in:
parent
3a4813e4b0
commit
e4397a2fe1
|
@ -200,7 +200,8 @@ export default function Success(props: SuccessProps) {
|
||||||
});
|
});
|
||||||
setDate(date.tz(localStorage.getItem("timeOption.preferredTimeZone") || dayjs.tz.guess()));
|
setDate(date.tz(localStorage.getItem("timeOption.preferredTimeZone") || dayjs.tz.guess()));
|
||||||
setIs24h(!!localStorage.getItem("timeOption.is24hClock"));
|
setIs24h(!!localStorage.getItem("timeOption.is24hClock"));
|
||||||
}, [date, eventType, needsConfirmation]);
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
|
}, [eventType, needsConfirmation]);
|
||||||
|
|
||||||
function eventLink(): string {
|
function eventLink(): string {
|
||||||
const optional: { location?: string } = {};
|
const optional: { location?: string } = {};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user