Merge branch 'develop' into 'main'
develop See merge request witapp/aura-webapp!513
This commit is contained in:
commit
1c4e6bf706
@ -72,10 +72,10 @@ function TrialPaymentPage() {
|
|||||||
}, [isPaymentSuccess])
|
}, [isPaymentSuccess])
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (isModalClosed) {
|
if (isModalClosed && !isPaymentSuccess && !isLoading) {
|
||||||
return handleDiscount()
|
return handleDiscount()
|
||||||
}
|
}
|
||||||
}, [isModalClosed])
|
}, [isModalClosed, isPaymentSuccess, isLoading])
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (error?.length && error !== "Product not found") {
|
if (error?.length && error !== "Product not found") {
|
||||||
|
|||||||
@ -78,7 +78,6 @@ export const usePayment = ({ placementKey, activeProduct }: IUsePaymentProps) =>
|
|||||||
|
|
||||||
const finishSubmit = async (response: any) => {
|
const finishSubmit = async (response: any) => {
|
||||||
try {
|
try {
|
||||||
console.log("response: ", response);
|
|
||||||
setIsSubmitting(true);
|
setIsSubmitting(true);
|
||||||
const res = await api.makePayment({
|
const res = await api.makePayment({
|
||||||
token,
|
token,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user