fix condition

This commit is contained in:
Ben Harris 2021-10-11 13:45:24 -04:00
parent bc9d1e1426
commit 284cf8d887
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ class PagesController < ApplicationController
while r.size > 0
if r.size % 4 == 0
teams << r.shift(4)
elsif r.size % 2 == 0
elsif r.size % 2 == 0 and r.size > 2
teams << r.shift(3)
teams << r.shift(3)
elsif r.size % 3 == 0