fix: photoinformation not appearing when turning background off and on again

This commit is contained in:
David Ralph
2021-04-28 16:16:27 +01:00
parent b795ceb33d
commit e323d4c692

View File

@@ -264,6 +264,10 @@ export default class Background extends React.PureComponent {
if (this.state.video === true) {
document.getElementById('backgroundVideo').style.display = 'block';
} else {
if (this.state.photoInfo.hidden === false) {
document.querySelector('.photoInformation').style.display = 'block';
}
element.style.display = 'block';
}