Skip to content

Commit a322de3

Browse files
fix: hotfix 500 explorer inactive operators bug (#1632)
Co-authored-by: Julian Arce <[email protected]>
1 parent e469e38 commit a322de3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

explorer/lib/explorer/models/operators.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ defmodule Operators do
7070
|> Enum.map(fn operator ->
7171
case operator.is_active do
7272
false ->
73-
Map.from_struct(operator) |> Map.put(:weight, 0)
73+
Map.from_struct(operator)
74+
|> Map.put(:weight, 0)
75+
|> Map.put(:total_stake_eth, 0)
76+
|> Map.put(:total_stake_usd, 0)
7477

7578
true ->
7679
weight = Decimal.div(operator.total_stake, total_stake)

0 commit comments

Comments
 (0)