Refactor exchange rate service to use promises instead of observables #9
Open
opened 11 months ago by inga-lovinde
·
0 comments
Loading…
Reference in new issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Currently,
ExchangeRateService.prototype.convertCurrency
is implemented to returnObservable<ExchangeRateResponse>
, making it difficult and non-straighforward to use, while providing zero benefit (convertCurrency
is only supposed to return one value anyway).Better to refactor it into a standard async function. Doing it now does not make a lot of sense though, because it should be rewritten in #7 anyway.