Client - update tooltip title

This commit is contained in:
Sam 2021-09-26 11:26:12 +02:00
parent 279271af42
commit 0c78b7a618

View File

@ -169,8 +169,10 @@
return tooltipItems.length === 0
? ''
: displayDistance.value
? tooltipItems[0].label + ' km'
: formatDuration(tooltipItems[0].label.replace(',', ''))
? `${t('workouts.DISTANCE')}: ${tooltipItems[0].label} km`
: `${t('workouts.DURATION')}: ${formatDuration(
tooltipItems[0].label.replace(',', '')
)}`
},
},
},