0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-26 02:50:28 +01:00

Stop reduce returning nil

Dieser Commit ist enthalten in:
Angus McLeod 2018-04-25 11:15:19 +10:00
Ursprung 26302cbad1
Commit a295f6fe20

Datei anzeigen

@ -132,6 +132,7 @@ class CustomWizard::Wizard
name = data['name'] name = data['name']
wizard = CustomWizard::Wizard.new(user, id: id, name: name) wizard = CustomWizard::Wizard.new(user, id: id, name: name)
result.push(id: id, name: name) if !wizard.completed? result.push(id: id, name: name) if !wizard.completed?
result
end end
else else
false false