We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98d87c9 commit 0436b2cCopy full SHA for 0436b2c
widgets/src/components/HomeGrantList.js
@@ -31,6 +31,8 @@ export function HomeGrantList({ default_entries = 3 }) {
31
}
32
33
const parseBudgetAmount = (budgetStr) => {
34
+ if (!budgetStr) return -1
35
+
36
const numStr = budgetStr.replace(/^[€$£]|\s/g, '')
37
38
return parseFloat(numStr.replace(/\./g, '').replace(',', '.'))
0 commit comments