Added full stops on session errors

This commit is contained in:
Mitchell McCaffrey 2020-06-28 11:06:26 +10:00
parent 75e2a591b3
commit a370b8e11d

View File

@ -422,9 +422,9 @@ function Game() {
function handlePeerError({ error, peer }) {
console.error(error.code);
if (error.code === "ERR_WEBRTC_SUPPORT") {
setPeerError("WebRTC not supported");
setPeerError("WebRTC not supported.");
} else if (error.code === "ERR_CREATE_OFFER") {
setPeerError("Unable to connect to party");
setPeerError("Unable to connect to party.");
}
}