diff --git a/nym-wallet/src/pages/settings/node-stats.tsx b/nym-wallet/src/pages/settings/node-stats.tsx index 99b8a9d8a3..c4c32d1b40 100644 --- a/nym-wallet/src/pages/settings/node-stats.tsx +++ b/nym-wallet/src/pages/settings/node-stats.tsx @@ -7,7 +7,7 @@ export const NodeStats = ({ mixnodeId }: { mixnodeId?: string }) => { return ( All your node stats are available on the link below - + diff --git a/nym-wallet/src/pages/settings/system-variables.tsx b/nym-wallet/src/pages/settings/system-variables.tsx index 1c4678b65a..ebd597a223 100644 --- a/nym-wallet/src/pages/settings/system-variables.tsx +++ b/nym-wallet/src/pages/settings/system-variables.tsx @@ -1,17 +1,6 @@ -import React, { useContext, useEffect, useState } from 'react' -import { - Box, - Button, - Chip, - CircularProgress, - Divider, - Grid, - LinearProgress, - Stack, - TextField, - Typography, -} from '@mui/material' -import { AccessTimeOutlined, PercentOutlined } from '@mui/icons-material' +import React, { useContext, useState } from 'react' +import { Box, Button, CircularProgress, Grid, LinearProgress, Stack, TextField, Typography } from '@mui/material' +import { PercentOutlined } from '@mui/icons-material' import { yupResolver } from '@hookform/resolvers/yup' import { useForm } from 'react-hook-form' import { InfoTooltip } from '../../components/InfoToolTip' @@ -39,7 +28,6 @@ export const SystemVariables = ({ onUpdate: () => void }) => { const [nodeUpdateResponse, setNodeUpdateResponse] = useState<'success' | 'failed'>() - const [configFee, setConfigFee] = useState() const { register, @@ -91,12 +79,12 @@ export const SystemVariables = ({ /> } /> } /> diff --git a/nym-wallet/src/pages/settings/useSettingsState.ts b/nym-wallet/src/pages/settings/useSettingsState.ts index 963b9eae3f..109414a05a 100644 --- a/nym-wallet/src/pages/settings/useSettingsState.ts +++ b/nym-wallet/src/pages/settings/useSettingsState.ts @@ -50,9 +50,10 @@ export const useSettingsState = (shouldUpdate: boolean) => { const getMixnodeInclusionProbability = async () => { if (mixnodeDetails?.mix_node.identity_key) { const probability = await getInclusionProbability(mixnodeDetails?.mix_node.identity_key) - if (probability) { - setInclusionProbability(probability) + const in_active = Math.round(probability.in_active * 100) + const in_reserve = Math.round(probability.in_reserve * 100) + setInclusionProbability({ in_active, in_reserve }) } } }