Преглед изворни кода

fix: waterwave doesn't render when precent=0

patientayo пре 7 година
родитељ
комит
bcb9280cd1
1 измењених фајлова са 1 додато и 1 уклоњено
  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;
     }