Skip to content

Commit 9f094b5

Browse files
committed
fix: Don't show weight units on progressive overload
This change fixes the issue where progressive overload would show a weight unit, however it does not actually use weight units, it just increments the value portion of the weight without knowledge of units. fixes: #641
1 parent f4d449c commit 9f094b5

2 files changed

Lines changed: 2 additions & 9 deletions

File tree

app/components/presentation/exercise-editor.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818
TimeCardioTarget,
1919
WeightedExerciseBlueprint,
2020
} from '@/models/blueprint-models';
21-
import { RootState, useAppSelector, useAppSelectorWithArg } from '@/store';
21+
import { useAppSelector, useAppSelectorWithArg } from '@/store';
2222
import {
2323
ExerciseDescriptor,
2424
selectExerciseById,
@@ -392,10 +392,6 @@ function WeightedExerciseEditor({
392392
updateExercise: (ex: Partial<ExerciseBlueprint>) => void;
393393
}) {
394394
const { t } = useTranslate();
395-
const useImperialUnits = useAppSelector(
396-
(s: RootState) => s.settings.useImperialUnits,
397-
);
398-
const weightSuffix = useImperialUnits ? 'lb' : 'kg';
399395

400396
const incrementSets = () => updateExercise({ sets: exercise.sets + 1 });
401397

@@ -469,7 +465,6 @@ function WeightedExerciseEditor({
469465
>
470466
<EditableIncrementer
471467
testID="exercise-auto-increase"
472-
suffix={weightSuffix}
473468
value={exercise.weightIncreaseOnSuccess}
474469
onChange={setExerciseWeightIncrease}
475470
/>

app/services/tolgee.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ export const getTolgee = (preferenceService: PreferenceService) =>
4040
.init({
4141
defaultLanguage: 'en',
4242
fallbackLanguage: 'en',
43-
// // for development
44-
// apiUrl: process.env.EXPO_PUBLIC_TOLGEE_API_URL!,
45-
// apiKey: process.env.EXPO_PUBLIC_TOLGEE_API_KEY!,
43+
4644
staticData: supportedLanguages.reduce(
4745
(acc, next) => ({ ...acc, [next.code]: next.translationJson }),
4846
{},

0 commit comments

Comments
 (0)