diff --git a/src/components/prestaking/ValidatorListItem.vue b/src/components/prestaking/ValidatorListItem.vue
index dfab0471b..b579fc424 100644
--- a/src/components/prestaking/ValidatorListItem.vue
+++ b/src/components/prestaking/ValidatorListItem.vue
@@ -21,8 +21,8 @@
-
- {{ $t('Stake: {validatorStake}%', { validatorStake }) }}
+
+ {{ $t('Stake: {validatorStake}%', { validatorStake: validatorStakePercentage }) }}
·
@@ -79,16 +79,16 @@ export default defineComponent({
console.log('validator changed', props.validator.stake); // eslint-disable-line no-console
});
- const validatorStake = computed(
+ const validatorStakePercentage = computed(
() => Math.round(((props.validator.stake || 0) / globalStake.value) * 1000) / 10,
);
- const isUnderdog = computed(() => validatorStake.value && validatorStake.value < 10);
- const hasHighStake = computed(() => validatorStake.value && validatorStake.value >= 20);
+ const isUnderdog = computed(() => props.validator.stake !== null && validatorStakePercentage.value < 10);
+ const hasHighStake = computed(() => props.validator.stake !== null && validatorStakePercentage.value >= 20);
return {
// payoutText,
- validatorStake,
+ validatorStakePercentage,
isUnderdog,
hasHighStake,
};