💄Fix format

💄Fix format
This commit is contained in:
Clivia
2024-08-03 08:59:08 +08:00
parent b6da4baa97
commit b01d72ade3
2 changed files with 4 additions and 5 deletions

View File

@@ -185,11 +185,7 @@
const totalFilesCount = currentFilesCount + inputFilesCount;
if (currentFilesCount >= maxFiles || totalFilesCount > maxFiles) {
toast.error(
$i18n.t('File count exceeds the limit of {{size}}', {
count: maxFiles
})
);
toast.error(`File count exceeds the limit of '${maxFiles}'. Please remove some files.`);
if (currentFilesCount >= maxFiles) {
return [false, null];
}