Don't render twice 🙈

This commit is contained in:
Matt-Yorkley
2020-05-05 15:21:05 +02:00
parent 068c8feea7
commit 4f4b3fb206

View File

@@ -7,7 +7,7 @@ module Api
skip_before_filter :authenticate_user, :ensure_api_key, only: [:taxons, :properties]
def products
render_no_products unless order_cycle.open?
return render_no_products unless order_cycle.open?
products = ProductsRenderer.new(
distributor,