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) console.error('get_register() error:' + err.message)
}) })
// checkAuth(address) checkAuth(address)
} }
const connect = async () => { const connect = async () => {

View File

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

View File

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