convert space strings (' ') to empty strings ('')

This commit is contained in:
Travis Eden 2018-10-04 09:31:37 -04:00
parent 48408a872d
commit 6aeee63d85
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@ const PublishLicenseInput = ({ handleSelect }) => {
className='select select--primary' className='select select--primary'
onChange={handleSelect} onChange={handleSelect}
> >
<option value=' '>Unspecified</option> <option value=''>Unspecified</option>
<option value='Public Domain'>Public Domain</option> <option value='Public Domain'>Public Domain</option>
<option value='Creative Commons'>Creative Commons</option> <option value='Creative Commons'>Creative Commons</option>
</select> </select>

View file

@ -11,7 +11,7 @@ const createPublishParams = (filePath, name, title, description, license, nsfw,
} }
// provide default for license // provide default for license
if (license === null || license.trim() === '') { if (license === null || license.trim() === '') {
license = ' '; // default to empty string license = ''; // default to empty string
} }
// create the basic publish params // create the basic publish params
const publishParams = { const publishParams = {