From b685051268cc9c326522c29e1aee84bdfd1ae773 Mon Sep 17 00:00:00 2001 From: John Hawthorn Date: Thu, 6 Apr 2017 16:30:49 -0700 Subject: [PATCH] Fix missing close paren in variantAutocomplete --- .../javascripts/spree/backend/variant_autocomplete.js.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app/assets/javascripts/spree/backend/variant_autocomplete.js.coffee b/backend/app/assets/javascripts/spree/backend/variant_autocomplete.js.coffee index 65dadd1296d..411ff28b368 100644 --- a/backend/app/assets/javascripts/spree/backend/variant_autocomplete.js.coffee +++ b/backend/app/assets/javascripts/spree/backend/variant_autocomplete.js.coffee @@ -33,7 +33,7 @@ $.fn.variantAutocomplete = (searchOptions = {}) -> formatResult: formatVariantResult formatSelection: (variant, container, escapeMarkup) -> - if !!variant.options_text - Select2.util.escapeMarkup("#{variant.name} (#{variant.options_text}") + if variant.options_text + Select2.util.escapeMarkup("#{variant.name} (#{variant.options_text})") else Select2.util.escapeMarkup(variant.name)