From 90f09e3a31760d42e3d98304c05d8d87b9536d84 Mon Sep 17 00:00:00 2001 From: Brandon Presley Date: Fri, 14 Oct 2022 16:49:34 +1300 Subject: [PATCH] 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. --- WorkoutItem.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WorkoutItem.tsx b/WorkoutItem.tsx index 5c8ccd5..5e382bd 100644 --- a/WorkoutItem.tsx +++ b/WorkoutItem.tsx @@ -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 (