diff options
author | Fabio Berger <me@fabioberger.com> | 2017-12-19 18:25:50 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-12-19 18:25:50 +0800 |
commit | b7004b30029f26e3a556676f5e713ba23cd5151d (patch) | |
tree | 34fa179e3985e4977a4b70174d91f99bec566714 /packages/website/ts/components/token_balances.tsx | |
parent | c6af59a3e72d09a123a89e63e0b4ed932c5c9e99 (diff) | |
download | dexon-0x-contracts-b7004b30029f26e3a556676f5e713ba23cd5151d.tar.gz dexon-0x-contracts-b7004b30029f26e3a556676f5e713ba23cd5151d.tar.zst dexon-0x-contracts-b7004b30029f26e3a556676f5e713ba23cd5151d.zip |
Refactor remaining _.assign to spread operator
Diffstat (limited to 'packages/website/ts/components/token_balances.tsx')
-rw-r--r-- | packages/website/ts/components/token_balances.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/website/ts/components/token_balances.tsx b/packages/website/ts/components/token_balances.tsx index ecaf63af9..ab4b04868 100644 --- a/packages/website/ts/components/token_balances.tsx +++ b/packages/website/ts/components/token_balances.tsx @@ -460,9 +460,10 @@ export class TokenBalances extends React.Component<TokenBalancesProps, TokenBala if (!this.state.isAddingToken && !isDefaultTrackedToken) { if (token.isRegistered) { // Remove the token from tracked tokens - const newToken = _.assign({}, token, { + const newToken = { + ...token, isTracked: false, - }); + }; this.props.dispatcher.updateTokenByAddress([newToken]); } else { this.props.dispatcher.removeTokenToTokenByAddress(token); |