@dcrackel/hematournamentui 1.0.96 → 1.0.98

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.96",
4
+ "version": "1.0.98",
5
5
  "type": "module",
6
6
  "main": "dist/HemaTouranmentUI-lib.umd.js",
7
7
  "module": "dist/HemaTouranmentUI-lib.es.js",
@@ -12,7 +12,7 @@
12
12
  </div>
13
13
  <span class="w-full">
14
14
  <BaseText text="Pools are in Planning Mode" size="lg" color="quaternary" weight="bold" class="" />
15
- <BaseText text="click start pools when ready to start event" size="xs" color="primaryHighlight" />
15
+ <BaseText text="click 'start checkin' to begin fencer checkin and pool finalization" size="xs" color="primaryHighlight" />
16
16
  </span>
17
17
 
18
18
  </section>
@@ -22,7 +22,7 @@
22
22
  </div>
23
23
  <span class="w-full">
24
24
  <BaseText text="Pools are Preparation Mode" size="lg" color="quaternary" weight="bold" class="" />
25
- <BaseText text="only fencers that are present will show" size="xs" color="primaryHighlight" />
25
+ <BaseText text="Only present fencers will show. Make any/all final changes. Click 'Go Live' to start pools." size="xs" color="primaryHighlight" />
26
26
  </span>
27
27
  </section>
28
28
  <section v-if="mode === 'live'" class="flex rounded-xl border border-dropdownSelect mt-2 px-4 pt-2 pb-4 bg-neutral w-1/3 shadow">
@@ -128,8 +128,12 @@ export default {
128
128
  this.$emit('goLive:pool');
129
129
  },
130
130
  getDirectorName(staffArray) {
131
- const director = staffArray.find(staff => staff.Role === 'Director');
132
- return director ? director.Person.DisplayName : 'Unassigned';
131
+ if (!Array.isArray(staffArray)) {
132
+ return 'Unassigned';
133
+ }
134
+
135
+ const director = staffArray.find(staff => staff.Role === 'Director' && staff.Person);
136
+ return director && director.Person ? director.Person.DisplayName : 'Unassigned';
133
137
  },
134
138
  swapFencers({ draggedPerson }) {
135
139
  this.$emit('update:swapFencers', {draggedPerson});