remove debug code
This commit is contained in:
parent
99fdcfc307
commit
9b4d81cc33
|
@ -35,7 +35,7 @@ export const WalletButton = ({ ...rest }) => {
|
|||
console.error('get_register() error:' + err.message)
|
||||
})
|
||||
|
||||
// checkAuth(address)
|
||||
checkAuth(address)
|
||||
}
|
||||
|
||||
const connect = async () => {
|
||||
|
|
|
@ -59,9 +59,9 @@ export const Account = () => {
|
|||
}
|
||||
|
||||
React.useEffect(() => {
|
||||
// if (app.address) {
|
||||
get_page_account('0xb308ED17897105cAac3f9813DD35c2eBc64b9A65').then(res => {
|
||||
console.log(res.data)
|
||||
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
|
||||
|
@ -73,19 +73,19 @@ export const Account = () => {
|
|||
console.error(err.message)
|
||||
})
|
||||
|
||||
get_withdrawal_history('0xb308ED17897105cAac3f9813DD35c2eBc64b9A65').then(res => {
|
||||
get_withdrawal_history(app.address).then(res => {
|
||||
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)
|
||||
console.log(res.data)
|
||||
// console.log(res.data)
|
||||
})
|
||||
get_reward_history('0xb308ED17897105cAac3f9813DD35c2eBc64b9A65').then(res => {
|
||||
get_reward_history(app.address).then(res => {
|
||||
setRewardHist(res.data)
|
||||
console.log(res.data)
|
||||
// console.log(res.data)
|
||||
})
|
||||
// }
|
||||
}
|
||||
}, [app.address])
|
||||
|
||||
return (
|
||||
|
|
|
@ -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)
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue