This commit is contained in:
parent
15fbab270e
commit
cc9af51a46
|
|
@ -152,7 +152,8 @@ export default function SetupPage() {
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleSaveSetupSetting = async () => {
|
const handleSaveSetupSetting = async () => {
|
||||||
const session = (await supabase.auth.getSession()).data.session
|
const supabaseClient = await supabase(); // Await the client creation
|
||||||
|
const session = (await supabaseClient.auth.getSession()).data.session
|
||||||
if (!session) {
|
if (!session) {
|
||||||
// return router.push(`/${locale}/login`)
|
// return router.push(`/${locale}/login`)
|
||||||
//return (`${homePath}/login`)
|
//return (`${homePath}/login`)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue