mirror of
https://github.com/oceanprotocol/status-frontend.git
synced 2024-11-24 19:10:08 +01:00
remove console
This commit is contained in:
parent
09e25b9eed
commit
65d6038f0d
@ -41,10 +41,8 @@ export default function HomePage(): ReactElement {
|
||||
async function getStatuses() {
|
||||
const statusData = await getData()
|
||||
const summaryData = getSummary(network, statusData)
|
||||
console.log('summaryData', summaryData)
|
||||
if (summaryData) setSummary(summaryData)
|
||||
const networkSummary = getNetworkSUmmary(statusData)
|
||||
console.log('networkSummary', networkSummary)
|
||||
if (networkSummary) setNetworks(networkSummary)
|
||||
}
|
||||
getStatuses()
|
||||
|
@ -5,12 +5,6 @@ import { availableNetworks } from '../../app.config'
|
||||
|
||||
export async function getData(): Promise<Status[][]> {
|
||||
try {
|
||||
console.log(
|
||||
'statusApiUri',
|
||||
process.env,
|
||||
process.env.NEXT_PUBLIC_STATUS_API_URI,
|
||||
statusApiUri
|
||||
)
|
||||
const response: AxiosResponse<Status[][]> = await axios.get(
|
||||
`${statusApiUri}`
|
||||
)
|
||||
@ -18,7 +12,6 @@ export async function getData(): Promise<Status[][]> {
|
||||
console.log('ERROR: no data recieved')
|
||||
|
||||
const data = response.data
|
||||
console.log('data', data)
|
||||
|
||||
return data
|
||||
} catch (error) {
|
||||
|
Loading…
Reference in New Issue
Block a user