diff --git a/resources/js/app.ts b/resources/js/app.ts index 5adf58e6..d586ebc6 100644 --- a/resources/js/app.ts +++ b/resources/js/app.ts @@ -32,7 +32,7 @@ createInertiaApp({ user: User; }; }>(); - return page.props.auth.user.week_start; + return page.props.auth.user.week_start ?? 'monday'; }; window.getTimezoneSetting = function () { const page = usePage<{