fix on grammert

This commit is contained in:
open-trade 2022-01-21 14:28:16 +08:00
parent 2846804234
commit 1df3df97b6

View File

@ -69,7 +69,7 @@ export default class Connection {
const phr = msg.punchHoleResponse; const phr = msg.punchHoleResponse;
const rr = msg.relayResponse; const rr = msg.relayResponse;
if (phr) { if (phr) {
if (phr.failure != rendezvous.PunchHoleResponse_Failure.UNKNOWN) { if (phr.failure != rendezvous.PunchHoleResponse_Failure.UNRECOGNIZED) {
switch (phr?.failure) { switch (phr?.failure) {
case rendezvous.PunchHoleResponse_Failure.ID_NOT_EXIST: case rendezvous.PunchHoleResponse_Failure.ID_NOT_EXIST:
this.msgbox("error", "Error", "ID does not exist"); this.msgbox("error", "Error", "ID does not exist");