From ccfe047ff3de51efd7c038936c1e023af8a732bb Mon Sep 17 00:00:00 2001 From: "Jesse C. Fisher" Date: Sat, 20 Nov 2021 04:06:53 -0800 Subject: [PATCH] Fix Play Now button --- app/controllers/tables_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/tables_controller.rb b/app/controllers/tables_controller.rb index e0f6a636..39e48bce 100644 --- a/app/controllers/tables_controller.rb +++ b/app/controllers/tables_controller.rb @@ -5,7 +5,7 @@ class TablesController < ApplicationController def play_now # First empty seat - @seat = Seat.where(user_soft_token: nil).first + @seat = Seat.where(user_soft_token: nil).select{|s| !s.player.try("is_bot?")}.first if @seat @seat.sit current_user else