Skip to content

Commit

Permalink
Load assets only once (#3561)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrederikBolding authored Oct 14, 2020
1 parent 5bcc13f commit d0d3749
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/Store/StoreProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,9 @@ export const StoreProvider: React.FC = ({ children }) => {
}, [currentAccounts]);

// fetch assets from api
useEffect(() => {
useEffectOnce(() => {
MyCryptoApiService.instance.getAssets().then(addAssetsFromAPI);
}, [assets.length]);
});

// A change to pending txs is detected
useEffect(() => {
Expand Down

0 comments on commit d0d3749

Please sign in to comment.