Set new space allocation to 0 when trying to use more than the space available

This commit is contained in:
Arnaud 2024-10-08 12:49:21 +02:00
parent 9a9ffe25f2
commit 130d1f9ca3
No known key found for this signature in database
GPG Key ID: 69D6CE281FCAE663

View File

@ -27,7 +27,7 @@ export function AvailabilitySpaceAllocation({ availability, space }: Props) {
},
{
title: "New space allocation",
size: Math.trunc(size),
size: size > remaining ? 0 : Math.trunc(size),
},
{
title: "Remaining space",