File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
lib/safira_web/live/app/wheel_live/components Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff 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 ) ->
You can’t perform that action at this time.
0 commit comments