Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: do not clear attachment upload status on complete

Abdullah Atta403ed8adb613
diff --git a/apps/web/src/app-effects.tsx b/apps/web/src/app-effects.tsx
index 6ed545297..98a85f286 100644
--- a/apps/web/src/app-effects.tsx
+++ b/apps/web/src/app-effects.tsx
@@ -164,15 +164,11 @@ export default function AppEffects({ setShow }: AppEffectsProps) {
const percent = Math.round((loaded / total) * 100);
const text = getStatus(key)?.status || `${status} attachment`;
- if (loaded === total) {
- removeStatus(key);
- } else {
- updateStatus({
- key,
- status: text,
- progress: loaded === total ? 100 : percent
- });
- }
+ updateStatus({
+ key,
+ status: text,
+ progress: loaded === total ? 100 : percent
+ });
}
);