final flow

This commit is contained in:
Zakhar
2026-08-30 14:47:34 +03:00
parent 9dc251bd8f
commit b016abdba2
27 changed files with 1268 additions and 202 deletions
+8
View File
@@ -109,6 +109,14 @@ export function clearGuestCookie(): Promise<unknown> {
});
}
export function subscribeOnFinish(email: string): Promise<unknown> {
return requestWithRefresh(apiUrl('/api/promo/subscribe'), {
method: 'POST',
headers: jsonHeaders,
body: JSON.stringify({ email }),
});
}
const fallbackInitialData: InitialData = {
cart: [],
users: [],