From 9a8e09b50d8dff85b8daaf0ed544dff635a585da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Mon, 13 Jan 2025 11:16:19 +0100 Subject: [PATCH] fix: Fix unseal status on the sector page --- web/api/webrpc/sector.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/web/api/webrpc/sector.go b/web/api/webrpc/sector.go index a1834ee3..f32a9a5a 100644 --- a/web/api/webrpc/sector.go +++ b/web/api/webrpc/sector.go @@ -41,7 +41,7 @@ type SectorInfo struct { UpdatedSealedCid string IsSnap bool UpdateMsg string - UnsealedState bool + UnsealedState *bool HasUnsealed bool PipelinePoRep *sectorListEntry @@ -454,9 +454,7 @@ func (a *WebRPC) SectorInfo(ctx context.Context, sp string, intid int64) (*Secto p := *sectormeta.Partition si.Partition = &p } - if sectormeta.UnsealedState != nil { - si.UnsealedState = *sectormeta.UnsealedState - } + si.UnsealedState = sectormeta.UnsealedState } var pieces []SectorPieceMeta