From 6d3936de0bfe877e0918adceaddba120d5917cba Mon Sep 17 00:00:00 2001 From: Jens Andersson Date: Wed, 19 Jun 2019 10:39:35 +0100 Subject: [PATCH] Fixes bug where poster and video was displayed simultaneously --- Video.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/Video.js b/Video.js index 81c1b802..d7bd51f6 100644 --- a/Video.js +++ b/Video.js @@ -308,15 +308,16 @@ export default class Video extends Component { }; return ( - - - {this.props.poster && - this.state.showPoster && ( - - - - )} - + + + {this.props.poster && this.state.showPoster && ( + + )} + ); } }