Skip to content

Commit 606e3f0

Browse files
committed
🐛 Potential fix for duplicating upload progress notifications
Don't try and check if the notification is open before updating it - just update it anyway. Potential fix for #111
1 parent 0cc923d commit 606e3f0

File tree

1 file changed

+2
-2
lines changed
  • octoprint_onedrive_backup/static/src/components

1 file changed

+2
-2
lines changed

octoprint_onedrive_backup/static/src/components/App.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ function App () {
6666
if (type === "upload_progress") {
6767
const progress = message.data.data.content.progress
6868

69-
if (progressNotification && progressNotification.state === "open"){
69+
if (progressNotification){
7070
progressNotification.update({
71-
text: `${progress}% complete`
71+
text: `Upload ${progress}% complete...`
7272
})
7373
} else {
7474
const notify = new Pnotify({

0 commit comments

Comments
 (0)