Skip to content

Commit 92a66f0

Browse files
committed
fix(frontend): improper usage of isEmpty
1 parent 5e70f0f commit 92a66f0

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/backend/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ryot"
3-
version = "5.3.2"
3+
version = "5.3.3"
44
edition = "2021"
55
repository = "https://github.com/IgnisDa/ryot"
66
license = "GPL-3.0"

apps/frontend/app/routes/_dashboard.fitness.workouts.current.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ import {
5959
} from "@ryot/generated/graphql/backend/graphql";
6060
import {
6161
displayWeightWithUnit,
62-
isEmpty,
6362
isEqual,
6463
snakeCase,
6564
startCase,
@@ -531,7 +530,7 @@ const StatInput = (props: {
531530
if (currentWorkout)
532531
setCurrentWorkout(
533532
produce(currentWorkout, (draft) => {
534-
const val = isEmpty(value) ? undefined : Number(value);
533+
const val = value === "" ? undefined : Number(value);
535534
draft.exercises[props.exerciseIdx].sets[props.setIdx].statistic[
536535
props.stat
537536
] = val as unknown as null;

0 commit comments

Comments
 (0)