diff --git a/package.json b/package.json index 2bcb5d54..ee8222ac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hopr-admin", - "version": "2.1.3", + "version": "2.1.4", "private": true, "dependencies": { "@emotion/react": "^11.11.0", diff --git a/src/store/slices/node/actionsAsync.ts b/src/store/slices/node/actionsAsync.ts index 1639c6fd..a7bbdf69 100644 --- a/src/store/slices/node/actionsAsync.ts +++ b/src/store/slices/node/actionsAsync.ts @@ -277,9 +277,8 @@ const getConfigurationThunk = createAsyncThunk< 'node/getConfiguration', async (payload, { rejectWithValue, dispatch }) => { try { - console.log('getConfigurationThunk start'); const configuration = await getConfiguration(payload); - console.log('getConfigurationThunk', configuration); + console.log('Configuration:\n', configuration); return configuration; } catch (e) { if (e instanceof sdkApiError) { diff --git a/src/utils/metrics.ts b/src/utils/metrics.ts index e2a19717..8c939ab6 100644 --- a/src/utils/metrics.ts +++ b/src/utils/metrics.ts @@ -26,7 +26,7 @@ export const parseMetrics = (data: string) => { parsed[key].type = type; } else { const parsedData = parseFloat(string[1]); - if (parsedData) parsed[lastKey].data.push(parsedData); + if (parsedData || parsedData === 0) parsed[lastKey].data.push(parsedData); const category = string[0].replace(lastKey, ''); if (category[0] === '_') category.replace('_', ''); parsed[lastKey].categories.push(category); @@ -34,6 +34,6 @@ export const parseMetrics = (data: string) => { } } - console.log(parsed); + console.log('Metrics:', parsed); return parsed; };