Client - minor change

This commit is contained in:
Sam
2021-11-12 19:03:58 +01:00
parent a6566c133c
commit 6117678ba1
11 changed files with 20 additions and 23 deletions

View File

@ -49,12 +49,8 @@
sports.filter((s) => s.id === workout.sport_id)[0]
.translatedLabel
"
:sport-label="
sports.filter((s) => s.id === workout.sport_id)[0].label
"
:color="
sports.filter((s) => s.id === workout.sport_id)[0].color
"
:sport-label="getSportLabel(workout, sports)"
:color="getSportColor(workout, sports)"
/>
</td>
<td
@ -166,6 +162,7 @@
import { useStore } from '@/use/useStore'
import { getQuery, sortList, workoutsPayloadKeys } from '@/utils/api'
import { getDateWithTZ } from '@/utils/dates'
import { getSportColor, getSportLabel } from '@/utils/sports'
import { defaultOrder } from '@/utils/workouts'
interface Props {