fix: only redirect in layout only if on redirect page

This commit is contained in:
Rotimi Best
2025-09-10 17:18:01 +01:00
parent 12c0f00007
commit f60809a249
2 changed files with 3 additions and 13 deletions
@@ -112,10 +112,6 @@
});
}
$: console.log('data', data);
$: console.log('currentOrg', $currentOrg);
$: console.log('profile', $profile);
function setCurOrg(cOrg: CurrentOrg) {
if (!cOrg) return;
currentOrg.set(cOrg);
@@ -136,7 +132,7 @@
{supabase}
isLogin={false}
{handleSubmit}
isLoading={loading}
isLoading={loading || !$profile.id}
showOnlyContent={true}
showLogo={true}
bind:formRef
@@ -151,7 +147,7 @@
label="Join Course"
type="submit"
isDisabled={disableSubmit || loading}
isLoading={loading}
isLoading={loading || !$profile.id}
/>
</div>
</AuthUI>