Skip to content

Commit

Permalink
Import only ramda function
Browse files Browse the repository at this point in the history
  • Loading branch information
amacar committed May 4, 2020
1 parent 50ee6c6 commit c400eae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/v2/services/Store/Asset/AssetProvider.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useContext, createContext } from 'react';
import * as R from 'ramda';
import clone from 'ramda/src/clone';

import { ExtendedAsset, LSKeys, TUuid, StoreAsset } from 'v2/types';

Expand Down Expand Up @@ -36,7 +36,7 @@ export const AssetProvider: React.FC = ({ children }) => {
});

// make a copy of current assets array and merge it with assets received from API
const assetsCopy = R.clone(assets);
const assetsCopy = clone(assets);
mappedAssets.forEach((asset) => {
const existing = assetsCopy.find((x) => x.uuid === asset.uuid);
if (existing) {
Expand Down

0 comments on commit c400eae

Please sign in to comment.