fix(join): redirect immediately on subscription success
Removes the 3-second setTimeout that deferred navigateTo('/welcome').
The overlay success state was a holdover from the pre-refactor Step-3
inline block; now that /welcome is the single welcome surface, the
delay just stalls a completed action and fights the continuous-flow
goal of the overlay.
This commit is contained in:
parent
968a127f96
commit
f2e2cedb67
1 changed files with 1 additions and 4 deletions
|
|
@ -631,10 +631,7 @@ const createSubscription = async (cardToken = null) => {
|
||||||
// Check member status to ensure user is properly authenticated
|
// Check member status to ensure user is properly authenticated
|
||||||
await checkMemberStatus();
|
await checkMemberStatus();
|
||||||
|
|
||||||
// Automatically redirect to welcome page after a short delay
|
|
||||||
setTimeout(() => {
|
|
||||||
navigateTo("/welcome");
|
navigateTo("/welcome");
|
||||||
}, 3000); // 3 second delay to show success message
|
|
||||||
} else {
|
} else {
|
||||||
throw new Error("Subscription creation failed - response not successful");
|
throw new Error("Subscription creation failed - response not successful");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue