@smartico/public-api 0.0.277 → 0.0.278

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.
@@ -3507,7 +3507,7 @@ class SmarticoAPI {
3507
3507
  include_users: true
3508
3508
  });
3509
3509
  const response = await this.send(message, ClassId.GET_LEADERS_BOARD_RESPONSE, force_language);
3510
- const boardKey = Object.keys(response.map).find(k => period_type_id === undefined || k === (period_type_id == null ? void 0 : period_type_id.toString()));
3510
+ const boardKey = Object.keys(response.map || {}).find(k => period_type_id === undefined || k === (period_type_id == null ? void 0 : period_type_id.toString()));
3511
3511
  if (boardKey === undefined) {
3512
3512
  return undefined;
3513
3513
  }