Skip to content

Commit

Permalink
web: do not clear attachment upload status on complete
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodrr committed Sep 4, 2023
1 parent 1eb5c8b commit 403ed8a
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions apps/web/src/app-effects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
}
);

Expand Down

0 comments on commit 403ed8a

Please sign in to comment.