From 094a0c55a4af207588408a0dce05230b40abd82b Mon Sep 17 00:00:00 2001 From: Cosmin-Mare Date: Sat, 5 Oct 2024 10:50:22 +0300 Subject: [PATCH] Check empty password on page load --- src/components/popups-etc/room-password.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/popups-etc/room-password.tsx b/src/components/popups-etc/room-password.tsx index cabdf29f99..6d36f8a6d6 100644 --- a/src/components/popups-etc/room-password.tsx +++ b/src/components/popups-etc/room-password.tsx @@ -5,6 +5,7 @@ import styles from './share-room.module.css' import { PersistenceState } from '../../lib/state' import { Game } from '../../lib/game-saving/account' import { PersistenceStateKind } from '../../lib/state' +import { useEffect } from 'preact/hooks' export interface RoomPasswordPopupProps { persistenceState: Signal @@ -31,6 +32,7 @@ export default function RoomPasswordPopup(props: RoomPasswordPopupProps) { } }); } + useEffect(checkPassword, []) return (