Skip to content

Commit

Permalink
chore: small fix
Browse files Browse the repository at this point in the history
Signed-off-by: samuel.park <[email protected]>
  • Loading branch information
piggggggggy committed Jan 17, 2025
1 parent 5f5b0df commit 4141d89
Showing 1 changed file with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,17 @@ const state = reactive({
name: 'language',
},
]),
data: computed(() => ({
id: state.userId,
name: userStore.state.name,
admin_role: state.roleType,
timezone: userStore.state.timezone,
language: userStore.state.language,
})),
data: computed(() => {
const timezone = state.timezones.find((d) => d.name === userStore.state.timezone)?.label || userStore.state.timezone;
const language = state.languages.find((d) => d.name === userStore.state.language)?.label || userStore.state.language;
return {
id: state.userId,
name: userStore.state.name,
admin_role: state.roleType,
timezone,
language,
};
}),
});
const formState = reactive({
userName: '' as string | undefined,
Expand Down

0 comments on commit 4141d89

Please sign in to comment.