[questions][chore] update to use company table values (#351)

Co-authored-by: Jeff Sieu <jeffsy00@gmail.com>
This commit is contained in:
hpkoh
2022-10-19 18:08:51 +08:00
committed by GitHub
parent 410bf290c9
commit 2f12a900e6
6 changed files with 106 additions and 95 deletions

View File

@@ -84,9 +84,8 @@ export default function ContributeQuestionForm({
name="company"
render={({ field }) => (
<CompaniesTypeahead
onSelect={({ label }) => {
// TODO: To change from using company name to company id (i.e., value)
field.onChange(label);
onSelect={({ id }) => {
field.onChange(id);
}}
/>
)}