Skip to content

Commit

Permalink
Remove dependency array
Browse files Browse the repository at this point in the history
  • Loading branch information
judy0ye committed Dec 1, 2023
1 parent 6dc0abf commit 625c091
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/RoomOne/RoomOne.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export default function RoomOne() {
const [dataSubscription, setDataSubscription] = useState(null);

const [allImagesLoaded, setAllImagesLoaded] = useState(false);

const roomImages = [
blueBackground,
clock,
Expand Down Expand Up @@ -73,7 +74,7 @@ export default function RoomOne() {
};

loadAllImages();
}, []);
});

const toggleCipherVisibility = () => {
setIsCipherVisible(!isCipherVisible);
Expand Down Expand Up @@ -259,7 +260,9 @@ export default function RoomOne() {
subscription={subscription}
/>
{roomStyle['--room-bg'] === 'none' && (
<span tabIndex='0' className="alpha-centauri">⏃⌰⌿⊑⏃ ☊⟒⋏⏁⏃⎍⍀⟟</span>
<span tabIndex="0" className="alpha-centauri">
⏃⌰⌿⊑⏃ ☊⟒⋏⏁⏃⎍⍀⟟
</span>
)}
</article>
)}
Expand Down

0 comments on commit 625c091

Please sign in to comment.