Bugfix
This commit is contained in:
parent
c0213d43f9
commit
e5e68a7764
2 changed files with 5 additions and 5 deletions
|
|
@ -8,7 +8,7 @@
|
|||
let pushups = 0;
|
||||
let situps = 0;
|
||||
let plankSeconds = 0;
|
||||
let runKm = 0.0;
|
||||
let runKm = 0;
|
||||
|
||||
// UI state
|
||||
let loading = false;
|
||||
|
|
@ -68,7 +68,7 @@
|
|||
pushups = 0;
|
||||
situps = 0;
|
||||
plankSeconds = 0;
|
||||
runKm = 0.0;
|
||||
runKm = 0;
|
||||
message = '';
|
||||
messageType = '';
|
||||
}
|
||||
|
|
@ -199,7 +199,7 @@
|
|||
min="0"
|
||||
step="0.1"
|
||||
class="flex-1 rounded-md border border-gray-300 px-3 py-2 focus:ring-2 focus:ring-blue-500 focus:outline-none"
|
||||
placeholder="0.0"
|
||||
placeholder="0"
|
||||
/>
|
||||
<button
|
||||
type="button"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { query } from '$app/server';
|
||||
import { command, query } from '$app/server';
|
||||
import { db } from '$lib/db';
|
||||
import { z } from 'zod';
|
||||
|
||||
|
|
@ -9,7 +9,7 @@ interface WorkOutData {
|
|||
runKm: number;
|
||||
}
|
||||
|
||||
export const saveWorkout = query(
|
||||
export const saveWorkout = command(
|
||||
z.object({
|
||||
pushups: z.number().min(0),
|
||||
situps: z.number().min(0),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue