@everymatrix/player-account-self-exclusion 0.0.202 → 0.0.203

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/player-account-self-exclusion",
3
- "version": "0.0.202",
3
+ "version": "0.0.203",
4
4
  "main": "dist/player-account-self-exclusion",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -37,5 +37,5 @@
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "d4e45d04feaefeedf3a6530ff705136d3a49ed86"
40
+ "gitHead": "31d7d9eeef7e68b954b83fb3dde25db05d8edf74"
41
41
  }
@@ -29,6 +29,7 @@
29
29
 
30
30
  currentDate.setDate(currentDate.getDate() + 7);
31
31
  minDate = moment(currentDate).format('YYYY-MM-DD');
32
+ selfExclusionExpiryDate = minDate;
32
33
 
33
34
  // Toggle permanent self exclusion
34
35
  const togglePermanentSelfExclusion = () => {
@@ -46,7 +47,7 @@
46
47
  } else {
47
48
  selfExclusionPeriod = 'SelfExclusionUntilSelectedDate';
48
49
 
49
- if (date.length > 0) {
50
+ if (date && date.length > 0) {
50
51
  selfExclusionExpiryDate = date;
51
52
  }
52
53
  }
@@ -112,7 +113,7 @@
112
113
  </div>
113
114
  <div class="SelfExclusionDateWrapper {isMobile ? 'SelfExclusionDateWrapperMobile' : ''}">
114
115
  <label for="SelfExclusionDate">{$_('selfExclusion.duration')}</label>
115
- <vaadin-date-picker bind:this={calendar} min={minDate}></vaadin-date-picker>
116
+ <vaadin-date-picker bind:this={calendar} min={minDate} value={minDate}></vaadin-date-picker>
116
117
  </div>
117
118
  <div class="SelfExclusionRadioWrapper {isMobile ? 'SelfExclusionRadioWrapperMobile' : ''}">
118
119
  <label class="SelfExclusionRadio">{$_('selfExclusion.forever')}