diff --git a/src/home/RegisteredView.jsx b/src/home/RegisteredView.jsx index d9b1e7b..3da40db 100644 --- a/src/home/RegisteredView.jsx +++ b/src/home/RegisteredView.jsx @@ -40,6 +40,7 @@ export function RegisteredView({ client }) { submit().catch((error) => { if (error.errcode === "M_ROOM_IN_USE") { setExistingRoomId(roomAliasFromRoomName(roomName)); + setLoading(false); setError(undefined); modalState.open(); } else { diff --git a/src/home/UnauthenticatedView.jsx b/src/home/UnauthenticatedView.jsx index 82de2d5..33c4260 100644 --- a/src/home/UnauthenticatedView.jsx +++ b/src/home/UnauthenticatedView.jsx @@ -52,6 +52,7 @@ export function UnauthenticatedView() { submit().catch((error) => { if (error.errcode === "M_ROOM_IN_USE") { setExistingRoomId(roomAliasFromRoomName(roomName)); + setLoading(false); setError(undefined); modalState.open(); } else {