瀏覽代碼

fix bug

master
Anna Ho 1 年之前
父節點
當前提交
85fe52e58e
共有 1 個檔案被更改,包括 3 行新增6 行删除
  1. +3
    -6
      src/pages/Payment/index.js

+ 3
- 6
src/pages/Payment/index.js 查看文件

@@ -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…
取消
儲存