From 07e722028036cffc15d069a089df95dd95ee2464 Mon Sep 17 00:00:00 2001 From: Melnyk Mykhailo Date: Mon, 29 Jan 2024 17:18:43 +0200 Subject: [PATCH] fix specially for shitheads that cant read through blank lines --- src/components/pages/profile/file-input.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/pages/profile/file-input.tsx b/src/components/pages/profile/file-input.tsx index cd50353..682e22d 100644 --- a/src/components/pages/profile/file-input.tsx +++ b/src/components/pages/profile/file-input.tsx @@ -33,7 +33,9 @@ const FileInput: FC = ({ className }) => { setImage(file) const fileReader = new FileReader() + fileReader.readAsDataURL(file) + fileReader.onloadstart = () => { setProgress(0) }