Преглед на файлове

fix CountDown Unknown event warning

jim преди 8 години
родител
ревизия
42bfd964bf
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/components/CountDown/index.js

+ 1 - 1
src/components/CountDown/index.js

@@ -96,7 +96,7 @@ class CountDown extends Component {
   }
 
   render() {
-    const { format = this.defaultFormat, ...rest } = this.props;
+    const { format = this.defaultFormat, onEnd, ...rest } = this.props;
     const { lastTime } = this.state;
 
     const result = format(lastTime);