Remove redundant check

Co-authored-by: Timo <16718859+toger5@users.noreply.github.com>
This commit is contained in:
David Baker
2023-10-11 16:10:03 +01:00
committed by GitHub
parent 59cd0c87cd
commit 9d4ade97b0

View File

@@ -43,8 +43,7 @@ const useKeyFromUrl = (): [string, string] | [undefined, undefined] => {
const urlParams = useUrlParams();
useEffect(() => {
if (!urlParams.password) return;
if (urlParams.password === "") return;
if (!urlParams.password || !urlParams.roomId) return;
if (!urlParams.roomId) return;
setLocalStorageItem(