From 0aa38a98a991ed320913f0827ae890542f3d9378 Mon Sep 17 00:00:00 2001 From: chip Date: Tue, 20 Oct 2020 00:45:51 +0200 Subject: [PATCH] fix(Sellout): Name correction for sending data to client --- phone/src/apps/sellout/components/form/ListingForm.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/phone/src/apps/sellout/components/form/ListingForm.tsx b/phone/src/apps/sellout/components/form/ListingForm.tsx index 198a2ce..5064aaf 100644 --- a/phone/src/apps/sellout/components/form/ListingForm.tsx +++ b/phone/src/apps/sellout/components/form/ListingForm.tsx @@ -33,13 +33,13 @@ export const ListingForm = () => { const [ title, setTitle ] = useState(''); const [ url, setUrl ] = useState(''); - const [ desc, setDesc ] = useState(''); + const [ description, setDescription ] = useState(''); const addListing = () => { Nui.send('phone:addListing', { title, url, - desc + description }) } @@ -67,7 +67,7 @@ export const ListingForm = () => { setDesc(e.target.value)} + onChange={e => setDescription(e.target.value)} placeholder="Description" inputProps={{ className: classes.multilineFieldInput }} style={{ width: "80%" }}