From 94abe3137bf0a240e232ffad10c82a600d871ede Mon Sep 17 00:00:00 2001 From: Quaternions Date: Fri, 27 Dec 2024 18:50:24 -0800 Subject: [PATCH] web: submit TargetAssetID --- web/src/app/submit/page.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/app/submit/page.tsx b/web/src/app/submit/page.tsx index 9125add..8e72ba4 100644 --- a/web/src/app/submit/page.tsx +++ b/web/src/app/submit/page.tsx @@ -15,7 +15,7 @@ interface SubmissionPayload { GameID: number; AssetID: number; AssetVersion: number; - SubmissionType: number; + TargetAssetID: number; } interface IdResponse { ID: number; @@ -37,7 +37,7 @@ export default function SubmissionInfoPage() { GameID: 1073741824, // TODO: Change this!! AssetID: Number((formData.get("asset-id") as string) ?? "0"), AssetVersion: 0, - SubmissionType: isFixingMap ? 2 : 1, + TargetAssetID: isFixingMap ? Number((formData.get("target-asset-id") as string) ?? "0") : 0, }; console.log(payload) @@ -84,7 +84,7 @@ export default function SubmissionInfoPage() { }, }} onChange={(e) => setIsFixingMap(e.target.checked)} />} label="Fixing an Existing Map?" /> - {/* */} +