added replacement from comma to dot

This commit is contained in:
lindhork 2021-02-12 01:17:11 +01:00
parent fa3e6267fd
commit af7ef25c9d

View file

@ -121,7 +121,7 @@ CardCustomField.register('cardCustomField');
{
'submit .js-card-customfield-currency'(event) {
event.preventDefault();
const value = Number(this.find('input').value, 10);
const value = Number(this.find('input').value.replace(/,/i,'.'), 10);
this.card.setCustomField(this.customFieldId, value);
},
},