fix: wrong validation of setting max share expiration to 0
This commit is contained in:
@@ -126,6 +126,7 @@ const CreateUploadModalBody = ({
|
||||
) as moment.unitOfTime.DurationConstructor,
|
||||
);
|
||||
if (
|
||||
options.maxExpirationInHours != 0 &&
|
||||
expirationDate.isAfter(
|
||||
moment().add(options.maxExpirationInHours, "hours"),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user