Change PaymentMethod order

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2022-03-11 18:15:00 +04:00
parent ccaebdb557
commit d41cae9865
2 changed files with 16 additions and 16 deletions
+3 -3
View File
@@ -65,7 +65,7 @@ export default function Soutyen({prices, paymentStatus}) {
}
useEffect(() => {
if (paymentMethod !== 2) {
if (paymentMethod !== 0) {
setClientEmail('')
setClientSecret(null)
setSelectedMontant(null)
@@ -119,10 +119,10 @@ export default function Soutyen({prices, paymentStatus}) {
useEffect(() => {}, [router.query.payment_intent])
useEffect(() => {
if (paymentMethod === 2 || validMontant) {
if (validMontant) {
scrollToBottom()
}
}, [paymentMethod, validMontant])
}, [validMontant])
useEffect(() => {
if (payementIsReady) {