From d2f90995ef411fbd15560afb58fe030c496ceb4d Mon Sep 17 00:00:00 2001 From: Andy Espagnolo Date: Wed, 9 Aug 2023 12:33:30 -0300 Subject: [PATCH] fix: send linked wearables items as number to backend (#1172) --- src/pages/submit/linked-wearables.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pages/submit/linked-wearables.tsx b/src/pages/submit/linked-wearables.tsx index 5d93b6697..e6272bf80 100644 --- a/src/pages/submit/linked-wearables.tsx +++ b/src/pages/submit/linked-wearables.tsx @@ -42,7 +42,7 @@ type LinkedWearablesState = { image_previews: Record links: Record nft_collections: string - items: number + items: string smart_contract: Record governance: string motivation: string @@ -69,7 +69,7 @@ const initialState: LinkedWearablesState = { '0': '', }, nft_collections: '', - items: 1, + items: '1', smart_contract: { '0': '', }, @@ -262,6 +262,7 @@ export default function SubmitLinkedWearables() { try { const proposal = await Governance.get().createProposalLinkedWearables({ ...data, + items: Number(data.items), links: removeEmptyStrings(Object.values(data.links)), smart_contract: removeEmptyStrings(Object.values(data.smart_contract)), managers: removeEmptyStrings(Object.values(data.managers)),