Merge pull request #5370 from Matt-Yorkley/dont-render-twice

Don't render twice
This commit is contained in:
Luis Ramos
2020-05-07 18:15:47 +01:00
committed by GitHub

View File

@@ -11,7 +11,7 @@ module Api
cache_path: proc { |controller| controller.request.url }
def products
render_no_products unless order_cycle.open?
return render_no_products unless order_cycle.open?
products = ProductsRenderer.new(
distributor,