diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 45a014ec..9cb4453b 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -217,7 +217,7 @@ class UserController < ApplicationController render layout: 'phone' end format.json do - render json: list.with_orders_as_json + render json: @list.with_orders_as_json end end end