@mundogamernetwork/shared-ui 1.17.4 → 1.17.5

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": "@mundogamernetwork/shared-ui",
3
- "version": "1.17.4",
3
+ "version": "1.17.5",
4
4
  "description": "Mundo Gamer Network - Shared UI Layer (Nuxt 3)",
5
5
  "type": "module",
6
6
  "main": "./nuxt.config.ts",
@@ -193,12 +193,9 @@ async function submit() {
193
193
  if (!canSubmit.value) return
194
194
  requestError.value = ""
195
195
  sessionExpired.value = false
196
- // Region is only demanded when the pool actually offers one — a global pool
197
- // (region_id null on every key item) has nothing for the creator to pick,
198
- // and requiring it here left the submit button dead with no explanation.
199
196
  if (
200
197
  !selectedPlatformId.value
201
- || (regionRequired.value && !selectedRegionId.value)
198
+ || !selectedRegionId.value
202
199
  || !quantity.value
203
200
  || !description.value?.trim()
204
201
  ) {
@@ -214,9 +211,7 @@ async function submit() {
214
211
  const response = await requestKey({
215
212
  key_id: keyId,
216
213
  platform_ids: [selectedPlatformId.value],
217
- // Omitted entirely on a global pool — sending [null] would fail
218
- // `region_ids.*` => integer.
219
- ...(selectedRegionId.value ? { region_ids: [selectedRegionId.value] } : {}),
214
+ region_ids: [selectedRegionId.value],
220
215
  description: description.value || "-",
221
216
  quantity_keys: Number(quantity.value) || 1,
222
217
  // Recorded on the request so the acknowledgment is provable, not just