Browse Source

Log error

pull/264/head
Thomas 4 years ago
parent
commit
fd45ad3649
  1. 5
      apps/api/src/services/exchange-rate-data.service.ts

5
apps/api/src/services/exchange-rate-data.service.ts

@ -88,7 +88,10 @@ export class ExchangeRateDataService {
return factor * aValue;
}
// Fallback if currencies are not available
// Fallback with error, if currencies are not available
console.error(
`No exchange rate has been found for ${aFromCurrency}${aToCurrency}`
);
return aValue;
}

Loading…
Cancel
Save