From ea9b87feabf1bf961e26646b3b43ec375b5f02b5 Mon Sep 17 00:00:00 2001 From: Stefan Pletka Date: Tue, 23 Apr 2024 12:42:34 +0200 Subject: [PATCH] Made the rewards duties info optional --- backend/pkg/api/types/validator_dashboard.go | 8 ++++---- frontend/types/api/validator_dashboard.ts | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/backend/pkg/api/types/validator_dashboard.go b/backend/pkg/api/types/validator_dashboard.go index 730316015..a9bbea565 100644 --- a/backend/pkg/api/types/validator_dashboard.go +++ b/backend/pkg/api/types/validator_dashboard.go @@ -77,10 +77,10 @@ type InternalGetValidatorDashboardValidatorIndicesResponse ApiDataResponse[[]uin // ------------------------------------------------------------ // Rewards Tab type VDBRewardesTableDuty struct { - Attestation float64 `json:"attestation"` - Proposal float64 `json:"proposal"` - Sync float64 `json:"sync"` - Slashing uint64 `json:"slashing"` + Attestation *float64 `json:"attestation"` + Proposal *float64 `json:"proposal"` + Sync *float64 `json:"sync"` + Slashing *uint64 `json:"slashing"` } type VDBRewardsTableRow struct { diff --git a/frontend/types/api/validator_dashboard.ts b/frontend/types/api/validator_dashboard.ts index 841f75071..fe7889f51 100644 --- a/frontend/types/api/validator_dashboard.ts +++ b/frontend/types/api/validator_dashboard.ts @@ -71,10 +71,10 @@ export type InternalGetValidatorDashboardValidatorIndicesResponse = ApiDataRespo * Rewards Tab */ export interface VDBRewardesTableDuty { - attestation: number /* float64 */; - proposal: number /* float64 */; - sync: number /* float64 */; - slashing: number /* uint64 */; + attestation?: number /* float64 */; + proposal?: number /* float64 */; + sync?: number /* float64 */; + slashing?: number /* uint64 */; } export interface VDBRewardsTableRow { epoch: number /* uint64 */;