We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 20c042a + de36ac8 commit c9ea1e0Copy full SHA for c9ea1e0
components/fiscal-sponsorship/first/stats.js
@@ -43,9 +43,6 @@ function formatMoney(amount) {
43
}
44
45
const Stats = ({ stats }) => {
46
- if (stats.transactions_volume === undefined) {
47
- return null
48
- }
49
const [balance, setBalance] = useState(0) // A formatted balance string, split by decimal
50
51
useEffect(() => {
@@ -67,6 +64,9 @@ const Stats = ({ stats }) => {
67
64
68
65
return () => observer.disconnect()
69
66
}, [stats.transactions_volume])
+
+ if (stats.transactions_volume === undefined) return null
70
return (
71
<Box id="parent">
72
<Flex sx={{ flexDirection: 'column', alignItems: 'center' }}>
0 commit comments