aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components/dialogs
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-12-19 18:25:50 +0800
committerFabio Berger <me@fabioberger.com>2017-12-19 18:25:50 +0800
commitb7004b30029f26e3a556676f5e713ba23cd5151d (patch)
tree34fa179e3985e4977a4b70174d91f99bec566714 /packages/website/ts/components/dialogs
parentc6af59a3e72d09a123a89e63e0b4ed932c5c9e99 (diff)
downloaddexon-sol-tools-b7004b30029f26e3a556676f5e713ba23cd5151d.tar
dexon-sol-tools-b7004b30029f26e3a556676f5e713ba23cd5151d.tar.gz
dexon-sol-tools-b7004b30029f26e3a556676f5e713ba23cd5151d.tar.bz2
dexon-sol-tools-b7004b30029f26e3a556676f5e713ba23cd5151d.tar.lz
dexon-sol-tools-b7004b30029f26e3a556676f5e713ba23cd5151d.tar.xz
dexon-sol-tools-b7004b30029f26e3a556676f5e713ba23cd5151d.tar.zst
dexon-sol-tools-b7004b30029f26e3a556676f5e713ba23cd5151d.zip
Refactor remaining _.assign to spread operator
Diffstat (limited to 'packages/website/ts/components/dialogs')
-rw-r--r--packages/website/ts/components/dialogs/track_token_confirmation_dialog.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/website/ts/components/dialogs/track_token_confirmation_dialog.tsx b/packages/website/ts/components/dialogs/track_token_confirmation_dialog.tsx
index 2d45009d5..f17893a83 100644
--- a/packages/website/ts/components/dialogs/track_token_confirmation_dialog.tsx
+++ b/packages/website/ts/components/dialogs/track_token_confirmation_dialog.tsx
@@ -73,7 +73,9 @@ export class TrackTokenConfirmationDialog extends
isAddingTokenToTracked: true,
});
for (const token of this.props.tokens) {
- const newTokenEntry = _.assign({}, token);
+ const newTokenEntry = {
+ ...token,
+ };
newTokenEntry.isTracked = true;
trackedTokenStorage.addTrackedTokenToUser(this.props.userAddress, this.props.networkId, newTokenEntry);