1
0

Removed verbose console

Signed-off-by: James Ketrenos <james_eikona@ketrenos.com>
This commit is contained in:
James Ketrenos 2022-06-20 12:51:01 -07:00
parent 7babaee861
commit 428bd9a26c

View File

@ -1947,11 +1947,10 @@ const trade = (game, session, action, offer) => {
continue;
}
/* Comparison reverses give/get order */
if (isSameOffer(other, { gives: offer.gets, gets: offer.gives }) && other.offerRejected) {
console.log('clear rejection', other, offer);
delete other.offerRejected[session.color];
} else {
console.log('do not clear rejection', other, offer);
if (isSameOffer(other, { gives: offer.gets, gets: offer.gives })) {
if (other.offerRejected) {
delete other.offerRejected[session.color];
}
}
}