Fix linting errors
This commit is contained in:
committed by
Jacob Evans
parent
58a213b7f9
commit
fd04bc4820
@@ -2,7 +2,6 @@ import * as _ from 'lodash';
|
||||
import * as React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { constants as sharedConstants } from '@0x/react-shared';
|
||||
import { BigNumber } from '@0x/utils';
|
||||
import { Web3Wrapper } from '@0x/web3-wrapper';
|
||||
import { constants } from 'ts/utils/constants';
|
||||
|
||||
@@ -184,7 +184,7 @@ export class VoteForm extends React.Component<Props> {
|
||||
e.preventDefault();
|
||||
|
||||
const { zeip, votePreference } = this.state;
|
||||
const { currentBalance, selectedAddress, isLedger, providerEngine } = this.props;
|
||||
const { currentBalance, selectedAddress } = this.props;
|
||||
// Query the available addresses
|
||||
// const addresses = await web3Wrapper.getAvailableAddressesAsync();
|
||||
// Use the first account as the maker
|
||||
|
||||
@@ -26,7 +26,7 @@ export const VoteStats: React.StatelessComponent<VoteStatsProps> = ({ tally }) =
|
||||
},
|
||||
});
|
||||
// const totalBalance = tally.totalBalance.toFormat(3, 2);
|
||||
const { yes, no, totalBalance } = tally;
|
||||
const { yes, totalBalance } = tally;
|
||||
const HUNDRED = new BigNumber(100);
|
||||
const totalBalanceString = Web3Wrapper.toUnitAmount(totalBalance, 18).toFormat(0, 2);
|
||||
let yesPercentage = HUNDRED.times(yes.dividedBy(totalBalance));
|
||||
|
||||
Reference in New Issue
Block a user