Skip to content

Commit

Permalink
make public ids optional
Browse files Browse the repository at this point in the history
  • Loading branch information
LuccaBitfly committed May 14, 2024
1 parent 2b18b48 commit 139741e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/pkg/api/types/dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type AccountDashboard struct {
type ValidatorDashboard struct {
Id uint64 `json:"id"`
Name string `json:"name"`
PublicIds []VDBPublicId `json:"public_ids"`
PublicIds []VDBPublicId `json:"public_ids,omitempty"`
}
type UserDashboardsData struct {
ValidatorDashboards []ValidatorDashboard `json:"validator_dashboards"`
Expand Down
2 changes: 1 addition & 1 deletion frontend/types/api/dashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface AccountDashboard {
export interface ValidatorDashboard {
id: number /* uint64 */;
name: string;
public_ids: VDBPublicId[];
public_ids?: VDBPublicId[];
}
export interface UserDashboardsData {
validator_dashboards: ValidatorDashboard[];
Expand Down

0 comments on commit 139741e

Please sign in to comment.