remove console

This commit is contained in:
mihaisc 2022-10-18 10:17:22 +03:00
parent 09e25b9eed
commit 65d6038f0d
2 changed files with 0 additions and 9 deletions

View File

@ -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()

View File

@ -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) {