mirror of
https://github.com/ArthurDanjou/website.git
synced 2026-01-20 15:01:45 +01:00
Improve small details
This commit is contained in:
@@ -7,8 +7,13 @@ export async function useTalents() {
|
||||
data: getCategories,
|
||||
} = await $trpc.talents.getCategories.useQuery()
|
||||
|
||||
function getCategoryById(id: number) {
|
||||
return getCategories.value?.find(category => category.id === id)?.name || 'Not Found'
|
||||
}
|
||||
|
||||
return {
|
||||
getTalents,
|
||||
getCategories,
|
||||
getCategoryById,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user