Fix linting errors

This commit is contained in:
Fred Carlsen
2019-02-15 18:13:53 +01:00
committed by Jacob Evans
parent 58a213b7f9
commit fd04bc4820
3 changed files with 2 additions and 3 deletions

View File

@@ -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';

View File

@@ -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

View File

@@ -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));