Update profile-form.tsx

This commit is contained in:
Mauricio Siu
2025-10-05 00:35:10 -06:00
committed by GitHub
parent 32454bab61
commit fa4724d94e

View File

@@ -333,10 +333,10 @@ export const ProfileForm = () => {
onChange={async (e) => {
const file = e.target.files?.[0];
if (file) {
// max file size 5mb
if (file.size > 5 * 1024 * 1024) {
// max file size 2mb
if (file.size > 2 * 1024 * 1024) {
toast.error(
"Image size must be less than 5MB",
"Image size must be less than 2MB",
);
return;
}