diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-06-23 06:56:24 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-06-23 06:57:34 +0800 |
commit | a1737a28d08798e4b58ff49cd116609ddafa5295 (patch) | |
tree | f93b6e0ca8bd0ac8c6a8a6b99be55aba4a727898 /packages/website | |
parent | 66be42d1f839f99bc4d953fe4be401776573f23f (diff) | |
download | dexon-sol-tools-a1737a28d08798e4b58ff49cd116609ddafa5295.tar dexon-sol-tools-a1737a28d08798e4b58ff49cd116609ddafa5295.tar.gz dexon-sol-tools-a1737a28d08798e4b58ff49cd116609ddafa5295.tar.bz2 dexon-sol-tools-a1737a28d08798e4b58ff49cd116609ddafa5295.tar.lz dexon-sol-tools-a1737a28d08798e4b58ff49cd116609ddafa5295.tar.xz dexon-sol-tools-a1737a28d08798e4b58ff49cd116609ddafa5295.tar.zst dexon-sol-tools-a1737a28d08798e4b58ff49cd116609ddafa5295.zip |
Do not render ZRX or WETH as removable tracked tokens
Diffstat (limited to 'packages/website')
-rw-r--r-- | packages/website/ts/components/generate_order/asset_picker.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/website/ts/components/generate_order/asset_picker.tsx b/packages/website/ts/components/generate_order/asset_picker.tsx index 87618f1e0..b0dcf5678 100644 --- a/packages/website/ts/components/generate_order/asset_picker.tsx +++ b/packages/website/ts/components/generate_order/asset_picker.tsx @@ -9,6 +9,7 @@ import { TokenIcon } from 'ts/components/ui/token_icon'; import { trackedTokenStorage } from 'ts/local_storage/tracked_token_storage'; import { Dispatcher } from 'ts/redux/dispatcher'; import { DialogConfigs, Token, TokenByAddress, TokenVisibility } from 'ts/types'; +import { constants } from 'ts/utils/constants'; const TOKEN_ICON_DIMENSION = 100; const TILE_DIMENSION = 146; @@ -134,7 +135,9 @@ export class AssetPicker extends React.Component<AssetPickerProps, AssetPickerSt const gridTiles = _.map(this.props.tokenByAddress, (token: Token, address: string) => { if ( (this.props.tokenVisibility === TokenVisibility.TRACKED && !token.isTracked) || - (this.props.tokenVisibility === TokenVisibility.UNTRACKED && token.isTracked) + (this.props.tokenVisibility === TokenVisibility.UNTRACKED && token.isTracked) || + token.symbol === constants.ZRX_TOKEN_SYMBOL || + token.symbol === constants.ETHER_TOKEN_SYMBOL ) { return null; // Skip } |