We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0436b2c commit afe18d6Copy full SHA for afe18d6
widgets/src/components/HomeGrantList.js
@@ -39,12 +39,12 @@ export function HomeGrantList({ default_entries = 3 }) {
39
};
40
41
const all_grant_list = data
42
- .slice(0, numberOfEntries)
43
.sort((a, b) => {
44
- const amountA = parseBudgetAmount(a.budgetAmount)
45
- const amountB = parseBudgetAmount(b.budgetAmount)
46
- return amountB - amountA;
+ const amountA = parseBudgetAmount(a.budgetAmount)
+ const amountB = parseBudgetAmount(b.budgetAmount)
+ return amountB - amountA;
47
})
+ .slice(0, numberOfEntries)
48
.map((x) => (
49
<GrantBox grant={x} key={x._id}></GrantBox>
50
));
0 commit comments