Fix rover: use length(@stations) instead of missing total_stations key
This commit is contained in:
parent
c3e326ac8b
commit
b54de258f7
1 changed files with 1 additions and 1 deletions
|
|
@ -347,7 +347,7 @@ defmodule MicrowavepropWeb.RoverLive do
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mt-1 flex justify-between opacity-70">
|
<div class="mt-1 flex justify-between opacity-70">
|
||||||
<span>{grid.workable_count}/{grid.total_stations} workable</span>
|
<span>{grid.workable_count}/{length(@stations)} workable</span>
|
||||||
<span>Prop: {grid.prop_score}</span>
|
<span>Prop: {grid.prop_score}</span>
|
||||||
</div>
|
</div>
|
||||||
<%= if grid.best_hour do %>
|
<%= if grid.best_hour do %>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue