Fix the error I made

This commit is contained in:
Bill 2022-08-02 16:14:27 -04:00
parent 9888183ff2
commit 784d7cbecd

View File

@ -280,20 +280,8 @@ const useRoomState = () =>
return () =>
{
setRoomBackground(prevValue =>
{
if(prevValue) prevValue.destroy();
return null;
});
setRoomFilter(prevValue =>
{
if(prevValue) prevValue.destroy();
return null;
});
setRoomBackground(null);
setRoomFilter(null);
setOriginalRoomBackgroundColor(0);
window.removeEventListener('resize', resize);