|
|
@@ -37,17 +37,11 @@ const Index = () => { |
|
|
|
const [transactionTime, setTransactionTime] = React.useState(""); |
|
|
|
const [onReady, setOnReady] = React.useState(false); |
|
|
|
const updatePaymentApi = "/api/payment/updatepayment"; |
|
|
|
//const paymentStatusApi = "/api/payment/status/"; |
|
|
|
const paymentStatusApi = "/api/payment/status/"; |
|
|
|
|
|
|
|
|
|
|
|
React.useEffect(() => { |
|
|
|
console.log("webtoken: " + localStorage.getItem("webtoken")); |
|
|
|
if (localStorage.getItem("webtoken") != null && localStorage.getItem("webtoken") != "") { |
|
|
|
loadForm(); |
|
|
|
} |
|
|
|
// else{ |
|
|
|
// navigate("/dashboard"); |
|
|
|
// } |
|
|
|
loadForm(); |
|
|
|
}, []); |
|
|
|
|
|
|
|
React.useEffect(() => { |
|
|
|