Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow floats for lab values #96

Merged
merged 2 commits into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions routes/~_dashboard/~patients/~$id/LabForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@
<Input
{...field}
type="number"
step="0.1"

Check warning on line 133 in routes/~_dashboard/~patients/~$id/LabForm.tsx

View check run for this annotation

Codecov / codecov/patch

routes/~_dashboard/~patients/~$id/LabForm.tsx#L133

Added line #L133 was not covered by tests
onChange={(event) =>
field.onChange(event.currentTarget.valueAsNumber)
}
Expand Down
2 changes: 1 addition & 1 deletion routes/~_dashboard/~patients/~$id/Labs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
}

const handleEdit = async (data: LabFormSchema) => {
const observation = deleteDialog.state
const observation = editDialog.state

Check warning on line 66 in routes/~_dashboard/~patients/~$id/Labs.tsx

View check run for this annotation

Codecov / codecov/patch

routes/~_dashboard/~patients/~$id/Labs.tsx#L66

Added line #L66 was not covered by tests
if (!observation) return
await updateObservation({
userId,
Expand Down
Loading