Remove isTracked field on token in favor of trackedTimestamp

This commit is contained in:
Brandon Millman
2018-06-25 11:47:54 -07:00
parent 0e932286d2
commit 4969797c23
11 changed files with 31 additions and 26 deletions

View File

@@ -424,9 +424,9 @@ export class TokenBalances extends React.Component<TokenBalancesProps, TokenBala
if (!this.state.isAddingToken && !isDefaultTrackedToken) {
if (token.isRegistered) {
// Remove the token from tracked tokens
const newToken = {
const newToken: Token = {
...token,
isTracked: false,
trackedTimestamp: undefined,
};
this.props.dispatcher.updateTokenByAddress([newToken]);
} else {