Explorar o código

fix: waterwave doesn't render when precent=0

patientayo %!s(int64=7) %!d(string=hai) anos
pai
achega
bcb9280cd1
Modificáronse 1 ficheiros con 1 adicións e 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 data = percent / 100;
     const self = this;
     const self = this;
 
 
-    if (!this.node || !data) {
+    if (!this.node || (data !== 0 && !data)) {
       return;
       return;
     }
     }