Changed party toasts to lowercase

This commit is contained in:
Mitchell McCaffrey 2020-10-27 19:17:40 +11:00
parent 80850fdb95
commit 16e2e53a24

View File

@ -144,7 +144,7 @@ function NetworkedParty({ gameId, session }) {
function handlePeerDisconnect({ peer }) {
if (partyNicknames[peer.id]) {
addToast(`${partyNicknames[peer.id]} Left the Party`);
addToast(`${partyNicknames[peer.id]} left the party`);
}
setPartyNicknames((prevNicknames) => omit(prevNicknames, [peer.id]));
setPartyTimers((prevTimers) => omit(prevTimers, [peer.id]));
@ -155,7 +155,7 @@ function NetworkedParty({ gameId, session }) {
if (!peer.initiator) {
for (let peerId in data) {
if (!(peerId in partyNicknames)) {
addToast(`${data[peerId]} Joined the Party`);
addToast(`${data[peerId]} joined the party`);
}
}
}