diff --git a/src/api/adminMember.ts b/src/api/adminMember.ts index 410f7965..b8ff9673 100644 --- a/src/api/adminMember.ts +++ b/src/api/adminMember.ts @@ -25,7 +25,7 @@ export const createAdminMember = ({ url: `/admin-members`, data: { password, - position: `${platform.toLocaleUpperCase()}_HELPER`, + position: `${platform}_HELPER`, username, }, }); diff --git a/src/components/modal/CreateHelperAdminMemberDialog/CreateHelperAdminMemberDialog.component.tsx b/src/components/modal/CreateHelperAdminMemberDialog/CreateHelperAdminMemberDialog.component.tsx index b4293a61..8e30ee2b 100644 --- a/src/components/modal/CreateHelperAdminMemberDialog/CreateHelperAdminMemberDialog.component.tsx +++ b/src/components/modal/CreateHelperAdminMemberDialog/CreateHelperAdminMemberDialog.component.tsx @@ -28,7 +28,9 @@ const CreateHelperAdminMemberDialog = ({ refreshList }: CreateHelperAdminMemberD const getTeams = async () => { const { data } = await api.getTeams(); - const newOptions = data.map((i) => ({ value: i.name, label: i.name })); + const newOptions = data.map(({ name }) => { + return { value: name === 'iOS' ? name : name.toLocaleUpperCase(), label: name }; + }); setOptions(newOptions); setValue('platform', newOptions[0].value); };