Explorar el Código

fix: waterwave doesn't render when precent=0

patientayo hace 8 años
padre
commit
bcb9280cd1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/components/Charts/WaterWave/index.js

+ 1 - 1
src/components/Charts/WaterWave/index.js

@@ -40,7 +40,7 @@ export default class WaterWave extends PureComponent {
     const data = percent / 100;
     const self = this;
 
-    if (!this.node || !data) {
+    if (!this.node || (data !== 0 && !data)) {
       return;
     }