Skip to content

Commit 774f833

Browse files
authored
fix: wheel probabilities text render (#514)
* fix: wheel probabilities text render * fix: ci
1 parent 0536ca1 commit 774f833

File tree

1 file changed

+1
-5
lines changed
  • lib/safira_web/live/app/wheel_live/components

1 file changed

+1
-5
lines changed

lib/safira_web/live/app/wheel_live/components/awards.ex

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defmodule SafiraWeb.App.WheelLive.Components.Awards do
2121
<td class="px-4 sm:block hidden py-2 font-bold text-center"><%= entry_stock(entry) %></td>
2222
<td class="px-4 py-2 text-center"><%= entry.max_per_attendee %></td>
2323
<td class="pl-2 py-2 text-accent font-bold text-right">
24-
<%= format_probability(entry.probability) %>
24+
<%= Float.round(entry.probability * 100, 4) %>
2525
</td>
2626
</tr>
2727
<% end %>
@@ -37,10 +37,6 @@ defmodule SafiraWeb.App.WheelLive.Components.Awards do
3737
end
3838
end
3939

40-
defp format_probability(probability) do
41-
"#{probability * 100} %"
42-
end
43-
4440
defp entry_name(drop) do
4541
cond do
4642
not is_nil(drop.prize) ->

0 commit comments

Comments
 (0)