Skip to content

Commit

Permalink
fix(frontend): improper usage of isEmpty
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnisDa committed May 13, 2024
1 parent 5e70f0f commit 92a66f0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/backend/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ryot"
version = "5.3.2"
version = "5.3.3"
edition = "2021"
repository = "https://github.com/IgnisDa/ryot"
license = "GPL-3.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ import {
} from "@ryot/generated/graphql/backend/graphql";
import {
displayWeightWithUnit,
isEmpty,
isEqual,
snakeCase,
startCase,
Expand Down Expand Up @@ -531,7 +530,7 @@ const StatInput = (props: {
if (currentWorkout)
setCurrentWorkout(
produce(currentWorkout, (draft) => {
const val = isEmpty(value) ? undefined : Number(value);
const val = value === "" ? undefined : Number(value);
draft.exercises[props.exerciseIdx].sets[props.setIdx].statistic[
props.stat
] = val as unknown as null;
Expand Down

0 comments on commit 92a66f0

Please sign in to comment.