Skip to content

Commit bdd6c83

Browse files
committed
fix #619: put_file_upload progress toast msg error
1 parent 65699d9 commit bdd6c83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webiojs/src/handlers/pin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export class PinHandler implements CommandHandler {
7474
...files.map((file: File) => serialize_file(file, 'value'))
7575
], {type: 'application/octet-stream'}),
7676
(loaded: number, total: number) => {
77-
toast.toastElement.innerText = `⏳${t("file_uploading")} ${(loaded / total).toFixed(2)}%`;
77+
toast.toastElement.innerText = `⏳${t("file_uploading")} ${((loaded / total)*100).toFixed(2)}%`;
7878
if (total - loaded < 100) toast.hideToast();
7979
}
8080
);

0 commit comments

Comments
 (0)