fix price range calculation

This commit is contained in:
byte[] 2019-11-17 19:18:56 -05:00
parent eb3e24c04d
commit cc9458e544

View file

@ -21,9 +21,11 @@ elixir:
= render PhilomenaWeb.UserAttributionView, "_user.html", object: c, badges: true, conn: @conn = render PhilomenaWeb.UserAttributionView, "_user.html", object: c, badges: true, conn: @conn
.commission__listing__body_text .commission__listing__body_text
- {min, max} = Enum.min_max(c.items, & &1.base_price)
p p
strong> Price Range: strong> Price Range:
= :io_lib.format("$~.2f - $~.2f USD", [c.minimum_price, c.maximum_price]) = :io_lib.format("$~.2f - $~.2f USD", [min || 0.0, max || 0.0])
p p
strong> Categories: strong> Categories: