aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components/generate_order
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-06-22 15:37:40 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-06-29 01:38:07 +0800
commit366a9502dd8ffc62f03b728ed46c592762fe170e (patch)
tree59e5836bccfe851b989ced2c0577c57325b18ad2 /packages/website/ts/components/generate_order
parent988a3347582cd812aadeaa0cdaef67389c8d833d (diff)
downloaddexon-sol-tools-366a9502dd8ffc62f03b728ed46c592762fe170e.tar.gz
dexon-sol-tools-366a9502dd8ffc62f03b728ed46c592762fe170e.tar.zst
dexon-sol-tools-366a9502dd8ffc62f03b728ed46c592762fe170e.zip
Sort wallet tokens by timestamp added and scroll to newly added token
Diffstat (limited to 'packages/website/ts/components/generate_order')
-rw-r--r--packages/website/ts/components/generate_order/asset_picker.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/website/ts/components/generate_order/asset_picker.tsx b/packages/website/ts/components/generate_order/asset_picker.tsx
index 0f569e1ad..e78324346 100644
--- a/packages/website/ts/components/generate_order/asset_picker.tsx
+++ b/packages/website/ts/components/generate_order/asset_picker.tsx
@@ -260,6 +260,7 @@ export class AssetPicker extends React.Component<AssetPickerProps, AssetPickerSt
};
newTokenEntry.isTracked = true;
+ newTokenEntry.trackedTimestamp = Date.now();
trackedTokenStorage.addTrackedTokenToUser(this.props.userAddress, this.props.networkId, newTokenEntry);
this.props.dispatcher.updateTokenByAddress([newTokenEntry]);