From a6c91393cc6806b3727d0407737caa4657f0af5f Mon Sep 17 00:00:00 2001 From: Leibniz137 Date: Sun, 21 Feb 2021 12:14:32 -0800 Subject: [PATCH] use ethers module to format ether --- frontend/keep-benefits/src/App.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/keep-benefits/src/App.js b/frontend/keep-benefits/src/App.js index 69dabc2..4343464 100644 --- a/frontend/keep-benefits/src/App.js +++ b/frontend/keep-benefits/src/App.js @@ -1,4 +1,3 @@ -import { formatEther } from '@ethersproject/units'; import { ethers } from 'ethers'; import React from 'react'; import { useWeb3React } from '@web3-react/core'; @@ -150,7 +149,7 @@ function Balance () { return (

- Current Account Balance: {balance === null ? 'Error' : balance ? `Ξ${formatEther(balance)}` : ''} + Current Account Balance: {balance === null ? 'Error' : balance ? `Ξ${ethers.formatEther(balance)}` : ''}

);