@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
|
@@ -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
|
-
||
|
|
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
|
-
|
|
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
|