mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-14 00:01:03 +00:00
fix: the iOS tile trim handles its own failure instead of an empty catch, and the weight test's slow row saves without an async prop
This commit is contained in:
@@ -11,10 +11,9 @@ function SlowRow({ onSave }: { onSave: (grams: number | null) => void }) {
|
||||
<WeightInput
|
||||
value={stored}
|
||||
width={36}
|
||||
onSave={async (grams) => {
|
||||
onSave={(grams) => {
|
||||
onSave(grams);
|
||||
await new Promise((resolve) => setTimeout(resolve, 300));
|
||||
setStored(grams);
|
||||
setTimeout(() => setStored(grams), 300);
|
||||
}}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user