fix: Ensure act is not any when React.act is not declared
#1323
+2
−1
act is not any when React.act is not declared
#1323