diff --git a/frontend/components/dashboard/table/DashboardTableRewards.vue b/frontend/components/dashboard/table/DashboardTableRewards.vue index d584349af..9f7dc9725 100644 --- a/frontend/components/dashboard/table/DashboardTableRewards.vue +++ b/frontend/components/dashboard/table/DashboardTableRewards.vue @@ -6,6 +6,7 @@ import { DAHSHBOARDS_ALL_GROUPS_ID, DAHSHBOARDS_NEXT_EPOCH_ID } from '~/types/da import { totalElCl } from '~/utils/bigMath' import { useValidatorDashboardRewardsStore } from '~/stores/dashboard/useValidatorDashboardRewardsStore' import { getGroupLabel } from '~/utils/dashboard/group' +import { formatRewardValueOption } from '~/utils/dashboard/table' const { dashboardKey, isPublic } = useDashboardKey() @@ -201,7 +202,7 @@ const wrappedRewards = computed(() => { v-else :value="totalElCl(slotProps.data.reward)" :use-colors="true" - :options="{ addPlus: true }" + :options="formatRewardValueOption" /> @@ -220,7 +221,7 @@ const wrappedRewards = computed(() => { v-else :value="slotProps.data.reward?.el" :use-colors="true" - :options="{ addPlus: true }" + :options="formatRewardValueOption" /> @@ -239,7 +240,7 @@ const wrappedRewards = computed(() => { v-else :value="slotProps.data.reward?.cl" :use-colors="true" - :options="{ addPlus: true }" + :options="formatRewardValueOption" /> diff --git a/frontend/components/dashboard/table/DashboardTableRewardsDetails.vue b/frontend/components/dashboard/table/DashboardTableRewardsDetails.vue index cc51dcc08..855ee1f8b 100644 --- a/frontend/components/dashboard/table/DashboardTableRewardsDetails.vue +++ b/frontend/components/dashboard/table/DashboardTableRewardsDetails.vue @@ -4,6 +4,7 @@ import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome' import { DashboardValidatorEpochDutiesModal, IconSlotBlockProposal, IconSlotHeadAttestation, IconSlotSlashing, IconSlotSourceAttestation, IconSlotSync, IconSlotTargetAttestation } from '#components' import type { VDBGroupRewardsDetails, VDBRewardsTableRow } from '~/types/api/validator_dashboard' import type BcTooltip from '~/components/bc/BcTooltip.vue' +import { formatRewardValueOption } from '~/utils/dashboard/table' interface Props { row: VDBRewardsTableRow @@ -183,7 +184,7 @@ const openDuties = () => { :value="item.value.income" :use-colors="item.value.income !== '0'" :class="item.className" - :options="{ addPlus: true, fixedDecimalCount: 5 }" + :options="formatRewardValueOption" /> @@ -192,7 +193,7 @@ const openDuties = () => {