diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-06-26 01:25:58 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-06-29 01:38:07 +0800 |
commit | 0e932286d28dad5c8e79659cb679c75e83c3825d (patch) | |
tree | 6ecbc0b30d7a591e57cd5ed494977db02d7c6b66 /packages/website/ts/components/generate_order | |
parent | 366a9502dd8ffc62f03b728ed46c592762fe170e (diff) | |
download | dexon-0x-contracts-0e932286d28dad5c8e79659cb679c75e83c3825d.tar.gz dexon-0x-contracts-0e932286d28dad5c8e79659cb679c75e83c3825d.tar.zst dexon-0x-contracts-0e932286d28dad5c8e79659cb679c75e83c3825d.zip |
Use moment and lodash
Diffstat (limited to 'packages/website/ts/components/generate_order')
-rw-r--r-- | packages/website/ts/components/generate_order/asset_picker.tsx | 3 |
1 files changed, 2 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 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<AssetPickerProps, AssetPickerSt }; newTokenEntry.isTracked = true; - newTokenEntry.trackedTimestamp = Date.now(); + newTokenEntry.trackedTimestamp = moment().unix(); trackedTokenStorage.addTrackedTokenToUser(this.props.userAddress, this.props.networkId, newTokenEntry); this.props.dispatcher.updateTokenByAddress([newTokenEntry]); |