diff --git a/wp-content/themes/ostal_WP/page-2101.php b/wp-content/themes/ostal_WP/page-2101.php index 0286db1..a889816 100644 --- a/wp-content/themes/ostal_WP/page-2101.php +++ b/wp-content/themes/ostal_WP/page-2101.php @@ -471,9 +471,9 @@ const checkFields = (data, ignoreKeys = []) => { for (const key in data) { if (ignoreKeys.includes(key)) continue; - + const value = data[key]; - + if (typeof value === 'object' && value !== null) { if (!checkFields(value, ignoreKeys)) { return false; @@ -487,10 +487,10 @@ return true; }; - // przekazujemy klucze, które należy zignorować return checkFields(configData, ['step_3_extra']); }, + checkFields() { return this.areAllFieldsFilled(this.configData); },