Skip to content

Commit

Permalink
Fix: iOS 팀에 대해서만 예외적으로 대문자 변환을 수행하지 않는다
Browse files Browse the repository at this point in the history
  • Loading branch information
Baek2back committed Jan 15, 2025
1 parent 9166724 commit 851975b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/adminMember.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const createAdminMember = ({
url: `/admin-members`,
data: {
password,
position: `${platform.toLocaleUpperCase()}_HELPER`,
position: `${platform}_HELPER`,
username,
},
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Expand Down

0 comments on commit 851975b

Please sign in to comment.