remove debug code

This commit is contained in:
john 2022-05-19 14:31:40 +07:00
parent 99fdcfc307
commit 9b4d81cc33
3 changed files with 27 additions and 27 deletions

View File

@ -35,7 +35,7 @@ export const WalletButton = ({ ...rest }) => {
console.error('get_register() error:' + err.message)
})
// checkAuth(address)
checkAuth(address)
}
const connect = async () => {

View File

@ -59,33 +59,33 @@ export const Account = () => {
}
React.useEffect(() => {
// if (app.address) {
get_page_account('0xb308ED17897105cAac3f9813DD35c2eBc64b9A65').then(res => {
console.log(res.data)
const d = res.data
let newAccount = [...accountData]
newAccount[0].value = d.output
newAccount[1].value = d.balance
newAccount[2].value = d.withdrawal
setAccountInfo(newAccount)
if (app.address) {
get_page_account(app.address).then(res => {
// console.log(res.data)
const d = res.data
let newAccount = [...accountData]
newAccount[0].value = d.output
newAccount[1].value = d.balance
newAccount[2].value = d.withdrawal
setAccountInfo(newAccount)
}).catch(err => {
console.error(err.message)
})
}).catch(err => {
console.error(err.message)
})
get_withdrawal_history('0xb308ED17897105cAac3f9813DD35c2eBc64b9A65').then(res => {
setWithdrawalHist(res.data)
console.log(res.data)
})
get_daily_revenue_history('0xb308ED17897105cAac3f9813DD35c2eBc64b9A65').then(res => {
setDailyRevenueHist(res.data)
console.log(res.data)
})
get_reward_history('0xb308ED17897105cAac3f9813DD35c2eBc64b9A65').then(res => {
setRewardHist(res.data)
console.log(res.data)
})
// }
get_withdrawal_history(app.address).then(res => {
setWithdrawalHist(res.data)
// console.log(res.data)
})
get_daily_revenue_history(app.address).then(res => {
setDailyRevenueHist(res.data)
// console.log(res.data)
})
get_reward_history(app.address).then(res => {
setRewardHist(res.data)
// console.log(res.data)
})
}
}, [app.address])
return (

View File

@ -56,7 +56,7 @@ export const Staking = () => {
get_staking_balance(app.address).then((res) => {
setBalance(res.data)
console.log(res.data)
// console.log(res.data)
})
}