diff --git a/app/models/champs/phone_champ.rb b/app/models/champs/phone_champ.rb index 69099d145..bbcc7691f 100644 --- a/app/models/champs/phone_champ.rb +++ b/app/models/champs/phone_champ.rb @@ -20,5 +20,5 @@ class Champs::PhoneChamp < Champs::TextChamp possible: true, allow_blank: true, message: I18n.t(:not_a_phone, scope: 'activerecord.errors.messages') - } + }, unless: -> { Phonelib.valid_for_country?(value, :pf) } end