Skip to content

Commit

Permalink
fix: send linked wearables items as number to backend (#1172)
Browse files Browse the repository at this point in the history
  • Loading branch information
andyesp authored Aug 9, 2023
1 parent 2b7680b commit d2f9099
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pages/submit/linked-wearables.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ type LinkedWearablesState = {
image_previews: Record<string, string>
links: Record<string, string>
nft_collections: string
items: number
items: string
smart_contract: Record<string, string>
governance: string
motivation: string
Expand All @@ -69,7 +69,7 @@ const initialState: LinkedWearablesState = {
'0': '',
},
nft_collections: '',
items: 1,
items: '1',
smart_contract: {
'0': '',
},
Expand Down Expand Up @@ -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)),
Expand Down

0 comments on commit d2f9099

Please sign in to comment.