From ab704aedd0b8490032584c042599028b67f4c677 Mon Sep 17 00:00:00 2001 From: Arnaud Date: Thu, 28 Nov 2024 18:37:15 +0100 Subject: [PATCH] Fix decimal value sent to the api --- src/components/StorageRequestSetup/StorageRequestCreate.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/StorageRequestSetup/StorageRequestCreate.tsx b/src/components/StorageRequestSetup/StorageRequestCreate.tsx index 7367022..3158d41 100644 --- a/src/components/StorageRequestSetup/StorageRequestCreate.tsx +++ b/src/components/StorageRequestSetup/StorageRequestCreate.tsx @@ -87,7 +87,7 @@ export function StorageRequestCreate() { storageRequest; mutateAsync({ ...rest, - duration: availability * Times.value(availabilityUnit), + duration: Math.trunc(availability * Times.value(availabilityUnit)), expiry: expiration * 60, }); } else {