Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

Commit

Permalink
fix: map usage
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-calavera committed Oct 17, 2019
1 parent a11a15a commit d02fd25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/v2/components/Applications/Detail/Details/index.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//@flow
import React from 'react';
import Label from 'v2/components/UI/Label';
import {map} from 'lodash/fp';
import {map} from 'lodash';
import {observer} from 'mobx-react-lite';
import {Table, TableBody, TableCell, TableRow} from '@material-ui/core';
import ValidatorName from 'v2/components/UI/ValidatorName';
Expand All @@ -27,7 +27,7 @@ const ApplicationDetails = ({programAccounts}: {programAccounts: Object}) => {

return (
<Table>
<TableBody>{map(renderAccount)(programAccounts)}</TableBody>
<TableBody>{map(programAccounts, renderAccount)}</TableBody>
</Table>
);
};
Expand Down
4 changes: 2 additions & 2 deletions src/v2/components/Transactions/Detail/Application/index.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @flow
import React from 'react';
import {map} from 'lodash/fp';
import {map} from 'lodash';
import {Grid} from '@material-ui/core';
import {Link} from 'react-router-dom';
import Label from 'v2/components/UI/Label';
Expand Down Expand Up @@ -36,7 +36,7 @@ const Application = ({id, accounts}: TApplication) => {
</div>
</Grid>
<Grid item md={7}>
{map(renderAccount)(accounts)}
{map(accounts, renderAccount)}
</Grid>
</Grid>
</div>
Expand Down

0 comments on commit d02fd25

Please sign in to comment.