Skip to content

Commit c9ea1e0

Browse files
authored
Merge pull request #1477 from hackclub/garyhtou/hcb-lint
[HCB] Fix lint error
2 parents 20c042a + de36ac8 commit c9ea1e0

File tree

1 file changed

+3
-3
lines changed
  • components/fiscal-sponsorship/first

1 file changed

+3
-3
lines changed

components/fiscal-sponsorship/first/stats.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ function formatMoney(amount) {
4343
}
4444

4545
const Stats = ({ stats }) => {
46-
if (stats.transactions_volume === undefined) {
47-
return null
48-
}
4946
const [balance, setBalance] = useState(0) // A formatted balance string, split by decimal
5047

5148
useEffect(() => {
@@ -67,6 +64,9 @@ const Stats = ({ stats }) => {
6764

6865
return () => observer.disconnect()
6966
}, [stats.transactions_volume])
67+
68+
if (stats.transactions_volume === undefined) return null
69+
7070
return (
7171
<Box id="parent">
7272
<Flex sx={{ flexDirection: 'column', alignItems: 'center' }}>

0 commit comments

Comments
 (0)