Commit e66ed21a authored by Rakhi Sharma's avatar Rakhi Sharma
Browse files

fix build error

parent acf7e744
Pipeline #44285 canceled with stages
......@@ -52,7 +52,6 @@ class Send extends Component {
}
title={token && <h1>Send {token.name}</h1>}
/>
{/* <EstimateUsd /> */}
<div className='window_content'>
<div className='box -padded'>
<TokenBalance
......@@ -106,7 +105,7 @@ class Send extends Component {
size='mini'
inverted
content={`${values.gasPrice} GWEI`}
on = 'focus' />
on='focus' />
</fieldset>
<nav className='form-nav'>
<button
......@@ -152,7 +151,7 @@ class Send extends Component {
var convertEthtoUsd = (values.gasPrice) * estimatusd;
console.log(convertEthtoUsd);
const estimated = await estimateGas(values, token, parityStore.api)
const estimated = await estimateGas(values, token, parityStore.api);
if (!ethBalance || isNaN(estimated)) {
throw new Error('No "ethBalance" or "estimated" value.');
}
......
......@@ -4,7 +4,7 @@
*/
export const estimateUSD = () => {
return fetch('https://api.etherscan.io/api?module=stats&action=ethprice')
.then(data => data.json())
.then((data) => {return data.result.ethusd });
return fetch('https://api.etherscan.io/api?module=stats&action=ethprice')
.then(data => data.json())
.then((data) => { return data.result.ethusd });
};
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment