-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
backendBackend teamBackend teambugSomething isn't workingSomething isn't workingfrontendFrontend teamFrontend team
Description
In posting an Ad for category Software, the format field was an enum previously,
But because we have the other option where user can add the format of what they are posting, we are making that a string option.
So what happens is that when the user select other, the value of format should be changed from other to what the user inputed.
More details can be found here:
frontend/src/pages/PostAd/CategoryForm.jsx
Lines 2354 to 2374 in ecd0418
| !['5903'].includes(selectedSoftwareCategory) && { | |
| control: 'radio', | |
| label: 'Format', | |
| name: 'format', | |
| type: 'radio', | |
| options: [ | |
| { key: 'Product Keys', value: 'product keys' }, | |
| { key: 'USB', value: 'usb' }, | |
| { key: 'Email', value: 'email format' }, | |
| { key: 'CD', value: 'cd' }, | |
| { key: 'Other', value: 'other' }, | |
| ], | |
| }, | |
| otherFormat && { | |
| control: 'input', | |
| label: 'Other Format', | |
| name: 'format', | |
| type: 'text', | |
| placeholder: 'Enter format', | |
| required: true, | |
| }, |

Metadata
Metadata
Assignees
Labels
backendBackend teamBackend teambugSomething isn't workingSomething isn't workingfrontendFrontend teamFrontend team