Skip to content

Commit

Permalink
fixing minor issue
Browse files Browse the repository at this point in the history
  • Loading branch information
katelyn98 committed Sep 11, 2023
1 parent 9754719 commit 630c299
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions frontend/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,21 @@ class App extends Component {
}

constructPlayer(name) {
return {
img: <i className={name}></i>,
name: name.slice(7),
score: 0,
};
console.log("NAME:", name)
if (name) {
return {
img: <i className={name}></i>,
name: name.slice(7),
score: 0,
};
} else {
return {
img: <i className={"guest"}></i>,
name: "guest",
score: 0,
};
}

}

setMenu(i) {
Expand Down

0 comments on commit 630c299

Please sign in to comment.