Skip to content

Commit

Permalink
fix: add loading spinner for face off component
Browse files Browse the repository at this point in the history
  • Loading branch information
agrattan0820 committed Jul 26, 2024
1 parent f0095db commit fbed128
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions apps/client/src/components/game/face-off.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,9 @@ const FaceOff = ({
setLoading(false);
setVoteSubmitted(true);
};

return (
<div className="mx-auto max-w-2xl">
{currQuestionGenerations && (
{currQuestionGenerations ? (
<>
<div className="relative mb-14">
<motion.h2
Expand Down Expand Up @@ -111,6 +110,10 @@ const FaceOff = ({
)}
</div>
</>
) : (
<div className="text-center">
<Ellipsis />
</div>
)}
</div>
);
Expand Down

0 comments on commit fbed128

Please sign in to comment.