Skip to content

Commit

Permalink
Bug fix: load the body of the response from google appropriately
Browse files Browse the repository at this point in the history
  • Loading branch information
olarotseyi committed Oct 21, 2022
1 parent 18eef81 commit 05308a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,8 @@ class CurrencyConverter {
resolve(body);
}
});
}).then((html) => {
return cheerio.load(html.body)
}).then((body) => {
return cheerio.load(body)
})
.then(($) => {
return $(".iBp4i").text().split(" ")[0]
Expand Down

0 comments on commit 05308a3

Please sign in to comment.