Merge branch 'hovertoplay-error-hotfix' into 'develop'

Check src exists first in hoverToPlay, hopefully fixes #322

Closes #322

See merge request soapbox-pub/soapbox-fe!169
This commit is contained in:
Alex Gleason 2020-08-15 21:36:00 +00:00
commit 30ebdf30ff
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ class StillImage extends React.PureComponent {
hoverToPlay() {
const { autoPlayGif, src } = this.props;
return !autoPlayGif && (src.endsWith('.gif') || src.startsWith('blob:'));
return src && !autoPlayGif && (src.endsWith('.gif') || src.startsWith('blob:'));
}
setCanvasRef = c => {