aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components/send_button.tsx
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-01-31 03:45:09 +0800
committerFabio Berger <me@fabioberger.com>2018-01-31 03:45:09 +0800
commit16ea0348a9776c99bf50013fca65deb2ba2d698e (patch)
treecfe98e292ad2cfc80e70a981ea10a8536283df10 /packages/website/ts/components/send_button.tsx
parent57acb8db5c48df994f106f8e4b369f7e780f7c9c (diff)
downloaddexon-sol-tools-16ea0348a9776c99bf50013fca65deb2ba2d698e.tar.gz
dexon-sol-tools-16ea0348a9776c99bf50013fca65deb2ba2d698e.tar.zst
dexon-sol-tools-16ea0348a9776c99bf50013fca65deb2ba2d698e.zip
Fix linter errors
Diffstat (limited to 'packages/website/ts/components/send_button.tsx')
-rw-r--r--packages/website/ts/components/send_button.tsx6
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/website/ts/components/send_button.tsx b/packages/website/ts/components/send_button.tsx
index f13e8ecce..ffa165f60 100644
--- a/packages/website/ts/components/send_button.tsx
+++ b/packages/website/ts/components/send_button.tsx
@@ -5,7 +5,7 @@ import * as React from 'react';
import { Blockchain } from 'ts/blockchain';
import { SendDialog } from 'ts/components/dialogs/send_dialog';
import { Dispatcher } from 'ts/redux/dispatcher';
-import { BlockchainCallErrs, Token, TokenState } from 'ts/types';
+import { BlockchainCallErrs, Token } from 'ts/types';
import { errorReporter } from 'ts/utils/error_reporter';
import { utils } from 'ts/utils/utils';
@@ -13,7 +13,6 @@ interface SendButtonProps {
userAddress: string;
networkId: number;
token: Token;
- tokenState: TokenState;
dispatcher: Dispatcher;
blockchain: Blockchain;
onError: () => void;
@@ -69,10 +68,9 @@ export class SendButton extends React.Component<SendButtonProps, SendButtonState
});
this._toggleSendDialog();
const token = this.props.token;
- const tokenState = this.props.tokenState;
try {
await this.props.blockchain.transferAsync(token, recipient, value);
- this.props.refetchTokenStateAsync(token.address);
+ await this.props.refetchTokenStateAsync(token.address);
} catch (err) {
const errMsg = `${err}`;
if (_.includes(errMsg, BlockchainCallErrs.UserHasNoAssociatedAddresses)) {