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 () => return () =>
{ {
setRoomBackground(prevValue => setRoomBackground(null);
{ setRoomFilter(null);
if(prevValue) prevValue.destroy();
return null;
});
setRoomFilter(prevValue =>
{
if(prevValue) prevValue.destroy();
return null;
});
setOriginalRoomBackgroundColor(0); setOriginalRoomBackgroundColor(0);
window.removeEventListener('resize', resize); window.removeEventListener('resize', resize);