fix: prevent auth flash on checkout, skip subscription guard on success return

This commit is contained in:
Usman Baig
2026-03-26 22:21:59 +01:00
parent f72a140ca6
commit 742c24fa6b
2 changed files with 5 additions and 4 deletions

View File

@@ -98,8 +98,8 @@ function LayoutInner({ children }: { children: React.ReactNode }) {
return <LoadingOverlay logoSrc="/pulse_icon_no_margins.png" title="Pulse" portal={false} />
}
// While auth is loading on a site page, render nothing to prevent flash of public header
if (auth.loading && isSitePage) {
// While auth is loading on a site or checkout page, render nothing to prevent flash of public header
if (auth.loading && (isSitePage || isCheckoutPage)) {
return null
}