Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
F1nnM committed May 3, 2021
1 parent a62917a commit b9773ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/Game.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@ class Game extends React.Component {
let player = this.state.game.players[this.props.room.sessionId];

let blackcardText = this.state.game.winner ? 'And the winner is [[BLANK]]' : this.state.game.blackCard.content || "Invite players with the code: "
let blackcardChildren = this.state.game.gameRunning ? (
let blackcardChildren = this.state.game.gameRunning ? null : (
<div>
<input value={this.state.roomId} />
<button onClick={() => { navigator.clipboard.writeText(this.state.roomId) }}>Copy Code</button>
{/*<button onClick={() => {navigator.clipboard.writeText(window.location.origin+"/#/game?"+this.state.roomId)}}>Copy Link</button> */}
</div>) : null;
</div>);
let blackcard = { content: blackcardText, children: blackcardChildren, mark: this.state.game.blackCard.mark }

let playedCards = this.state.game.winner ? [{ cards: [{ content: this.state.game.players[this.state.game.winner].name, mark: "WIN" }], chosenByCzar: true }] : this.state.game.cardsPlayed
Expand Down

0 comments on commit b9773ce

Please sign in to comment.