Reduce redundancy of workouts

Repeating the word sets and rest looks a bit
funny. This way leaves a bit to the imagination,
but looks simpler. If a user doesn't understand what
the description is talking about they will probably
just tap the item to read it.
This commit is contained in:
Brandon Presley 2022-10-14 16:49:34 +13:00
parent a65274c2d6
commit 90f09e3a31
1 changed files with 2 additions and 2 deletions

View File

@ -38,8 +38,8 @@ export default function WorkoutItem({
const description = useMemo(() => {
const minutes = item.minutes?.toString().padStart(2, '0');
const seconds = item.seconds?.toString().padStart(2, '0');
if (settings.alarm) return `${item.sets} sets ${minutes}:${seconds} rest`;
return `${item.sets} sets`;
if (settings.alarm) return `${item.sets} x ${minutes}:${seconds}`;
return `${item.sets}`;
}, [item, settings.alarm]);
return (