]> git.xn--bdkaa.com Git - where-are-you.py.git/commitdiff
fix error
authora.soldatof <a.soldatof@gmail.com>
Sun, 19 May 2019 08:06:00 +0000 (11:06 +0300)
committera.soldatof <a.soldatof@gmail.com>
Sun, 19 May 2019 08:06:00 +0000 (11:06 +0300)
src/Game.js

index 6b91cebd9e244560ca7f075074e2c9a41b737eb9..e83f05446c60d75e8f94307b4ca6b43e8b0b38d0 100644 (file)
@@ -85,7 +85,9 @@ export class Game extends Component {
   }
 
   componentDidUpdate() {
-    this.tipsListRef.current.scrollTop = 10000;
+    if(this.tipsListRef && this.tipsListRef.current) {
+      this.tipsListRef.current.scrollTop = 10000;
+    }
   }
 
   askTip = () => {