Skip to content

Commit

Permalink
Merge pull request #20 from xeptagondev/carbon-133
Browse files Browse the repository at this point in the history
Fixed the issue in add new company logo validation msg issue
  • Loading branch information
dhanushkaxep authored Mar 30, 2023
2 parents 808dbcc + 900c4d9 commit c8b0ce8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/Pages/Company/addNewCompany.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -345,10 +345,10 @@ const AddNewCompany = () => {
isCorrectFormat = true;
}
if (!isCorrectFormat) {
throw new Error(`t('unsupportedFormat')`);
throw new Error(`${t('unsupportedFormat')}`);
} else if (file[0]?.size > maximumImageSize) {
// default size format of files would be in bytes -> 1MB = 1000000bytes
throw new Error(`t('maxUploadSize')`);
throw new Error(`${t('maxUploadSize')}`);
}
}
}
Expand Down

0 comments on commit c8b0ce8

Please sign in to comment.