Fix storage size limit input validation

This commit is contained in:
Joshen Lim committed 2022-07-06 14:57:57 +08:00
1 parent d61daa9cd3
commit 67e5ba99c9
1 file changed
+1 -1
@@ -50,7 +50,7 @@ const StorageConfig = ({ config, projectRef }: any) => {
const onValidate = (values: any) => {
const errors = {} as any
if (values.fileSizeLimit > STORAGE_FILE_SIZE_LIMIT_MAX_BYTES) {
if (values.fileSizeLimit > formattedMaxLimit) {
errors[
'fileSizeLimit'
] = `Maximum limit is up to ${formattedMaxLimit.toLocaleString()} ${selectedUnit}.`