Skip to content

Commit 3f7f3a5

Browse files
authored
Merge pull request #11 from TourConnect/feature/additional_custom_params
options for "extended-option" needs to be a map with value and label
2 parents cb22f01 + a789359 commit 3f7f3a5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

index.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,11 @@ class Plugin {
906906
subtitle: "Enter the traveler's country of origin",
907907
type: "extended-option",
908908
isPerUnitItem: false,
909-
options: ORIGIN_COUNTRIES,
909+
options: ORIGIN_COUNTRIES.reduce(function(map, obj) {
910+
map[value] = obj;
911+
map[label] = obj;
912+
return map;
913+
}, {}),
910914
})
911915

912916
addCustomField(CUSTOM_FIELD_IDS.TRAVELAGENCY, "Entry Travel Agency", "Enter the travel agency name", "short");

0 commit comments

Comments
 (0)