Mostly pointed out by linter, but "This condition will always return 'false' since JavaScript compares objects by reference, not value". Added in a quick fix with parties.length === 0 - since the value and types both can correctly be compared as opposed to parties === [] where types are (likely) different thus a forever-false situation.
Mostly pointed out by linter, but "This condition will always return 'false' since JavaScript compares objects by reference, not value". Added in a quick fix with
parties.length === 0
- since the value and types both can correctly be compared as opposed toparties === []
where types are (likely) different thus a forever-false situation.