mirror of
https://github.com/oceanprotocol/status-frontend.git
synced 2024-11-21 17:36:58 +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() {
|
async function getStatuses() {
|
||||||
const statusData = await getData()
|
const statusData = await getData()
|
||||||
const summaryData = getSummary(network, statusData)
|
const summaryData = getSummary(network, statusData)
|
||||||
console.log('summaryData', summaryData)
|
|
||||||
if (summaryData) setSummary(summaryData)
|
if (summaryData) setSummary(summaryData)
|
||||||
const networkSummary = getNetworkSUmmary(statusData)
|
const networkSummary = getNetworkSUmmary(statusData)
|
||||||
console.log('networkSummary', networkSummary)
|
|
||||||
if (networkSummary) setNetworks(networkSummary)
|
if (networkSummary) setNetworks(networkSummary)
|
||||||
}
|
}
|
||||||
getStatuses()
|
getStatuses()
|
||||||
|
@ -5,12 +5,6 @@ import { availableNetworks } from '../../app.config'
|
|||||||
|
|
||||||
export async function getData(): Promise<Status[][]> {
|
export async function getData(): Promise<Status[][]> {
|
||||||
try {
|
try {
|
||||||
console.log(
|
|
||||||
'statusApiUri',
|
|
||||||
process.env,
|
|
||||||
process.env.NEXT_PUBLIC_STATUS_API_URI,
|
|
||||||
statusApiUri
|
|
||||||
)
|
|
||||||
const response: AxiosResponse<Status[][]> = await axios.get(
|
const response: AxiosResponse<Status[][]> = await axios.get(
|
||||||
`${statusApiUri}`
|
`${statusApiUri}`
|
||||||
)
|
)
|
||||||
@ -18,7 +12,6 @@ export async function getData(): Promise<Status[][]> {
|
|||||||
console.log('ERROR: no data recieved')
|
console.log('ERROR: no data recieved')
|
||||||
|
|
||||||
const data = response.data
|
const data = response.data
|
||||||
console.log('data', data)
|
|
||||||
|
|
||||||
return data
|
return data
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user