Last active
May 15, 2016 00:35
-
-
Save captDaylight/8ab9c10b1525df0b49e84db558672692 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
if (userData) { | |
const playerTwo = userData[1]; // player two's id is at the first index of match results | |
const gameData = { | |
id: channel, | |
players: { | |
[user]: { | |
accepted: true, | |
played: '', | |
}, | |
[playerTwo]: { | |
accepted: false, | |
played: '', | |
}, | |
}, | |
}; | |
} else { | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment