Browse Source

fix bug

master
Anna Ho 1 year ago
parent
commit
85fe52e58e
1 changed files with 3 additions and 6 deletions
  1. +3
    -6
      src/pages/Payment/index.js

+ 3
- 6
src/pages/Payment/index.js View File

@@ -50,12 +50,9 @@ const Index = () => {

useEffect(() => {
if(id<0)return;
if(location.state.amount > 0 ){
setTotalAmount(location.state.amount)
}else{
//fake
setTotalAmount(2000)
}
let amount = location.state?.amount??2000;
setTotalAmount(amount)
getAvailablePayment()
getTransactionId()
}, []);


Loading…
Cancel
Save