From: a.soldatof Date: Sun, 19 May 2019 08:06:00 +0000 (+0300) Subject: fix error X-Git-Url: https://git.xn--bdkaa.com/?a=commitdiff_plain;h=d06b71589b6e86ab0e59a781052bf241976e8669;p=where-are-you.py.git fix error --- diff --git a/src/Game.js b/src/Game.js index 6b91ceb..e83f054 100644 --- a/src/Game.js +++ b/src/Game.js @@ -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 = () => {