Skip to content

Commit

Permalink
Fix decimal value sent to the api
Browse files Browse the repository at this point in the history
  • Loading branch information
2-towns committed Nov 28, 2024
1 parent dd85353 commit ab704ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ab704ae

Please sign in to comment.