Skip to content

Commit

Permalink
fix(select): check input select
Browse files Browse the repository at this point in the history
  • Loading branch information
rowasc committed Dec 4, 2020
1 parent 5fc4689 commit 2f3c1bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ushahidi-platform-sdk",
"version": "v0.3.3",
"version": "v0.3.4",
"description": "An SDK for the Ushahidi Platform - V3+ compatible",
"engines": {
"node": ">= 10 <13"
Expand Down
2 changes: 1 addition & 1 deletion src/surveys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class Surveys {
}

static fieldCanHaveOptions = (field) => {
return field.input === 'checkbox' || field.input === 'radio';
return field.input === 'checkbox' || field.input === 'radio' || field.input === 'select';
}

static areOptionsUnique(options: []) {
Expand Down

0 comments on commit 2f3c1bc

Please sign in to comment.