From 0e932286d28dad5c8e79659cb679c75e83c3825d Mon Sep 17 00:00:00 2001 From: Brandon Millman Date: Mon, 25 Jun 2018 10:25:58 -0700 Subject: Use moment and lodash --- packages/website/ts/components/generate_order/asset_picker.tsx | 3 ++- packages/website/ts/components/wallet/wallet.tsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'packages') diff --git a/packages/website/ts/components/generate_order/asset_picker.tsx b/packages/website/ts/components/generate_order/asset_picker.tsx index e78324346..ade168f2e 100644 --- a/packages/website/ts/components/generate_order/asset_picker.tsx +++ b/packages/website/ts/components/generate_order/asset_picker.tsx @@ -1,6 +1,7 @@ import * as _ from 'lodash'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; +import * as moment from 'moment'; import * as React from 'react'; import { Blockchain } from 'ts/blockchain'; import { NewTokenForm } from 'ts/components/generate_order/new_token_form'; @@ -260,7 +261,7 @@ export class AssetPicker extends React.Component { if ( !_.isUndefined(firstDifferentTrackedToken) && _.size(differentTrackedTokens) === 1 && - currentTrackedTokens.includes(firstDifferentTrackedToken) + _.includes(currentTrackedTokens, firstDifferentTrackedToken) ) { document.getElementById(firstDifferentTrackedToken.address).scrollIntoView(); } -- cgit