Skip to content

Commit

Permalink
match button
Browse files Browse the repository at this point in the history
  • Loading branch information
lopatoj committed Sep 22, 2024
1 parent adc757a commit 19fb289
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/pages/Match/Match.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useState } from "react";
import { UserData } from "server/src/middleware/auth";

function Match() {
const [name, setName] = useState("Looks like everyone's taken...");
const [name, setName] = useState("...");

useEffect(() => {
auth.onAuthStateChanged(async (user) => {
Expand All @@ -16,6 +16,7 @@ function Match() {
const res = await requestMatch(user);

if (!res) {
setName("Looks like everyone's taken...")
return;
}

Expand Down

0 comments on commit 19fb289

Please sign in to comment.