Small change to loading state

This commit is contained in:
Atridad Lahiji 2023-10-15 18:45:08 -03:00 committed by atridadl
parent 1a6c31414e
commit 9deec3ff9e
No known key found for this signature in database

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 {