vor marketing zu website umbenennung. stripe ist lauffähig

This commit is contained in:
Codex Agent
2025-10-08 11:20:00 +02:00
parent aa8c6c67c5
commit b3e6b6b597
11 changed files with 597 additions and 197 deletions

View File

@@ -19,9 +19,10 @@ export default function CheckoutWizardPage({
stripePublishableKey,
privacyHtml,
}: CheckoutWizardPageProps) {
const page = usePage<{ auth?: { user?: { id: number; email: string; name?: string } | null } }>();
const page = usePage<{ auth?: { user?: { id: number; email: string; name?: string; pending_purchase?: boolean } | null } }>();
const currentUser = page.props.auth?.user ?? null;
const dedupedOptions = React.useMemo(() => {
const ids = new Set<number>();
const list = [initialPackage, ...packageOptions];
@@ -57,7 +58,7 @@ export default function CheckoutWizardPage({
packageOptions={dedupedOptions}
stripePublishableKey={stripePublishableKey}
privacyHtml={privacyHtml}
initialAuthUser={currentUser ? { id: currentUser.id, email: currentUser.email ?? '', name: currentUser.name ?? undefined } : null}
initialAuthUser={currentUser ? { id: currentUser.id, email: currentUser.email ?? '', name: currentUser.name ?? undefined, pending_purchase: Boolean(currentUser.pending_purchase) } : null}
/>
</div>
</div>