Skip to content

Commit

Permalink
display facet just for localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
Austin Griffith committed Mar 25, 2021
1 parent 2ecacb5 commit 7f7dc6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-app/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ function App(props) {
}, [setRoute]);

let faucetHint = ""
const faucetAvailable = localProvider && localProvider.connection && localProvider.connection.url && localProvider.connection.url.indexOf(window.location.hostname)>=0 && !process.env.REACT_APP_PROVIDER && price > 1;
const faucetAvailable = localProvider && localProvider.connection && targetNetwork.name == "localhost"

const [ faucetClicked, setFaucetClicked ] = useState( false );
if(!faucetClicked&&localProvider&&localProvider._network&&localProvider._network.chainId==31337&&yourLocalBalance&&formatEther(yourLocalBalance)<=0){
Expand Down

0 comments on commit 7f7dc6a

Please sign in to comment.