bkper-js 2.43.2 → 2.43.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -287,11 +287,12 @@ export class Account extends ResourceProperty {
287
287
  }
288
288
  /** @internal */
289
289
  isInGroupObject_(group) {
290
- if (this.payload.groups == null) {
290
+ const groupId = group.getId();
291
+ if (this.payload.groups == null || !groupId) {
291
292
  return false;
292
293
  }
293
294
  for (var i = 0; i < this.payload.groups.length; i++) {
294
- if (this.payload.groups[i] == group.getId()) {
295
+ if (this.payload.groups[i].id === groupId) {
295
296
  return true;
296
297
  }
297
298
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkper-js",
3
- "version": "2.43.2",
3
+ "version": "2.43.3",
4
4
  "description": "Javascript client for Bkper REST API",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",