From 76601167922f6afd01082fe363580c6a334e41b3 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Wed, 20 May 2020 15:31:46 +1000 Subject: [PATCH] Display variant name only when set The previous method was falling back to the product name which is displayed already. --- app/assets/javascripts/templates/shop_variant.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/templates/shop_variant.html.haml b/app/assets/javascripts/templates/shop_variant.html.haml index 477ffcf040..e5028eb025 100644 --- a/app/assets/javascripts/templates/shop_variant.html.haml +++ b/app/assets/javascripts/templates/shop_variant.html.haml @@ -1,6 +1,6 @@ .variants.row .small-3.medium-4.large-6.columns.variant-name - .inline {{ ::variant.name_to_display }} + .inline {{ ::variant.display_name }} .variant-unit {{ ::variant.unit_to_display }} .bulk-buy.inline{"ng-if" => "::variant.product.group_buy"} %i.ofn-i_056-bulk><