Merge branch dev into main

This commit is contained in:
Atridad Lahiji 2023-10-15 19:56:35 -03:00
commit 7c75ccc476

View file

@ -42,7 +42,6 @@ const VoteUI = () => {
const {
data: roomFromDb,
isLoading: roomFromDbLoading,
isFetching: roomFromDbFetching,
} = useQuery({
queryKey: ["room"],
queryFn: getRoomHandler,
@ -317,7 +316,7 @@ const VoteUI = () => {
// UI
// =================================
// Room is loading
if (roomFromDbLoading || roomFromDbFetching) {
if (roomFromDbLoading) {
return <LoadingIndicator />;
// Room has been loaded
} else {