Skip to content

Commit de2f3d5

Browse files
authored
hotfix: change cost_per_proof_chart var name (#1711)
1 parent b6aa3bf commit de2f3d5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

explorer/lib/explorer_web/live/eth_converter.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ defmodule EthConverter do
5858
end
5959
end
6060

61+
defp round_to_sf(%Decimal{coef: 0} = _value, _sf), do: Decimal.new("0")
62+
6163
defp round_to_sf(value, significant_figures) do
6264
# Convert the value to a float and calculate the magnitude
6365
value_float = Decimal.to_float(value)

explorer/lib/explorer_web/live/pages/home/index.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ defmodule ExplorerWeb.Home.Index do
154154
|> assign(
155155
stats: [],
156156
latest_batches: [],
157-
cost_per_proof_data: %{points: [], extra_data: %{}},
157+
cost_per_proof_chart: %{points: [], extra_data: %{}},
158158
batch_size_chart_data: %{points: [], extra_data: %{}}
159159
)
160160
end

0 commit comments

Comments
 (0)