Skip to content

Commit

Permalink
change choices to options
Browse files Browse the repository at this point in the history
  • Loading branch information
David Wang committed Sep 16, 2021
1 parent ed055e1 commit 467dd1f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ function StepFifth({appleStoreOrgs, stepFifthData, onSetStepFifthData}: Props) {
<StyledSelectField
name="organization"
label={t('iTunes Organization')}
choices={appleStoreOrgs.map(appleStoreOrg => [
appleStoreOrg.organizationId,
appleStoreOrg.name,
])}
options={appleStoreOrgs.map(appleStoreOrg => ({
value: appleStoreOrg.organizationId,
label: appleStoreOrg.name,
}))}
placeholder={t('Select organization')}
onChange={organizationId => {
const selectedAppleStoreOrg = appleStoreOrgs.find(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ function StepTwo({stepTwoData, onSetStepTwoData, appStoreApps}: Props) {
<StyledSelectField
name="application"
label={t('App Store Connect application')}
choices={appStoreApps.map(appStoreApp => [appStoreApp.appId, appStoreApp.name])}
options={appStoreApps.map(appStoreApp => ({
value: appStoreApp.appId,
label: appStoreApp.name,
}))}
placeholder={t('Select application')}
onChange={appId => {
const selectedAppStoreApp = appStoreApps.find(
Expand Down

0 comments on commit 467dd1f

Please sign in to comment.