Skip to content

Commit

Permalink
handle complete checkpoint (#1841)
Browse files Browse the repository at this point in the history
  • Loading branch information
LexLuthr authored Dec 7, 2023
1 parent ca748c3 commit 88e4dda
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gql/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,9 @@ func (dr *dealResolver) SealingState(ctx context.Context) string {
if dr.ProviderDealState.Checkpoint < dealcheckpoints.AddedPiece {
return "To be sealed"
}
if dr.ProviderDealState.Checkpoint == dealcheckpoints.Complete {
return "Complete"
}
return dr.sealingState(ctx)
}

Expand Down
6 changes: 6 additions & 0 deletions react/src/Deals.js
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,12 @@ export function SealingStatusInfo(props) {
The deal has been handed off to the sealing subsystem and is being sealed.
</p>
</p>
<p>
<i>Complete</i><br/>
<p>
The sector containing the deal has expired or the deal errored out.
</p>
</p>
</Info>
</span>
}
Expand Down

0 comments on commit 88e4dda

Please sign in to comment.