@dcrackel/hematournamentui 1.0.313 → 1.0.315

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dcrackel/hematournamentui",
3
3
  "private": false,
4
- "version": "1.0.313",
4
+ "version": "1.0.315",
5
5
  "type": "module",
6
6
  "main": "dist/HemaTournamentUI-lib.umd.js",
7
7
  "module": "dist/HemaTournamentUI-lib.es.js",
@@ -129,8 +129,9 @@ export default {
129
129
  }));
130
130
  },
131
131
  getImageURL() {
132
- console.log(this.club.Images)
133
- return this.club.Images[0] ? this.club.Images[0].URL : '';
132
+ return Array.isArray(this.club.Images) && this.club.Images.length > 0
133
+ ? this.club.Images[0].URL
134
+ : "";
134
135
  },
135
136
  getSelectedAddress() {
136
137
  return this.club.Address.Name
@@ -199,7 +199,9 @@ export default {
199
199
  return this.person.ProfileImage ? this.person.ProfileImage.URL : '';
200
200
  },
201
201
  getClubName() {
202
- return {text: this.person.Club.Name, link: this.person.Club.ClubId};
202
+ return this.person?.Club
203
+ ? { text: this.person.Club.Name, link: this.person.Club.ClubId }
204
+ : { text: 'No Club', link: null };
203
205
  },
204
206
  getSelectedPronouns() {
205
207
  return {text: this.person.Pronouns, link: this.person.Pronouns};