Skip to content

Commit 428cbfd

Browse files
authored
Merge pull request #417 from Olexandr88/patch-1
fix: return correct USD field from cryptocompare response
2 parents d1ab7cd + f119141 commit 428cbfd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/gas.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export async function getEthPrice() {
4848
const body = await response.json()
4949

5050
if (body.USD) {
51-
return body.usdPrice
51+
return body.USD
5252
}
5353
} catch (e) {
5454
console.log('Unable to fetch price from cryptocompare..')

0 commit comments

Comments
 (0)