Skip to content

Commit

Permalink
fix #619: put_file_upload progress toast msg error
Browse files Browse the repository at this point in the history
  • Loading branch information
wang0618 committed Dec 6, 2023
1 parent 65699d9 commit bdd6c83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webiojs/src/handlers/pin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class PinHandler implements CommandHandler {
...files.map((file: File) => serialize_file(file, 'value'))
], {type: 'application/octet-stream'}),
(loaded: number, total: number) => {
toast.toastElement.innerText = `⏳${t("file_uploading")} ${(loaded / total).toFixed(2)}%`;
toast.toastElement.innerText = `⏳${t("file_uploading")} ${((loaded / total)*100).toFixed(2)}%`;
if (total - loaded < 100) toast.hideToast();
}
);
Expand Down

0 comments on commit bdd6c83

Please sign in to comment.