Fix some settings not being properly migrated when set to false

This commit is contained in:
Claire 2023-09-21 15:17:44 +02:00
parent 6760e67c64
commit b57ec6ad6b

View File

@ -42,7 +42,7 @@ class MoveGlitchUserSettings < ActiveRecord::Migration[6.1]
MAPPING.each do |legacy_key, new_key|
value = previous_settings[legacy_key]&.value
next if value.blank?
next if value.nil?
if value.is_a?(Hash)
value.each do |nested_key, nested_value|