From 9a3506a9d69d60ec6828b8d319777a7ed81f1b3d Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Tue, 24 Sep 2019 15:52:09 +0800 Subject: [PATCH] FIX: required data check --- lib/builder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/builder.rb b/lib/builder.rb index b0f46947..b6778fe6 100644 --- a/lib/builder.rb +++ b/lib/builder.rb @@ -104,7 +104,7 @@ class CustomWizard::Builder end if required_data = step_template['required_data'] - if !@submissions.last && required_data.length + if !@submissions.last && required_data.present? step.permitted = false next end