text:   
  export default class ExchangeRateService {  
    static getRate(currency) {
      return fetch(`https://v6.exchangerate-api.com/v6/${process.env.API_KEY}/latest/${currency}`)
        .then(function(response) {
          debugger
          if (!response.ok) {
            throw Error(response.statusText);
          }
          return response.json();
        })
        .catch(function(error) {
          return Error(error);
        });
    }
  }
  