Währungen in Kleinbuchstaben und kleine Fixes
This commit is contained in:
@@ -89,13 +89,11 @@ function createConverter(engine, config) {
|
||||
if (!normalized || isNaN(normalized)) {
|
||||
return;
|
||||
}
|
||||
const fromCode = (config.fromCurrency || '')
|
||||
.toUpperCase();
|
||||
const toCode = (config.toCurrency || '')
|
||||
.toUpperCase();
|
||||
const fromRate = fromCode === 'EUR'
|
||||
const fromCode = config.fromCurrency || '';
|
||||
const toCode = config.toCurrency || '';
|
||||
const fromRate = fromCode === 'eur'
|
||||
? 1 : this.rates[fromCode];
|
||||
const toRate = toCode === 'EUR'
|
||||
const toRate = toCode === 'eur'
|
||||
? 1 : this.rates[toCode];
|
||||
if (!fromRate || !toRate) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user