Skip to content

Commit a2ef611

Browse files
committed
Navigate to success page
1 parent 7c68a45 commit a2ef611

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/Checkout/CheckoutForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ const handleSubmit = ({
9191
9292
mutate(checkoutData);
9393
94-
onDone(() => alert("Order placed!"));
94+
onDone(async () => await navigateTo("/success"));
9595
9696
onError(() => alert("Error, order not placed"));
9797
};

0 commit comments

Comments
 (0)