Skip to content

Commit

Permalink
🐛 Potential fix for duplicating upload progress notifications
Browse files Browse the repository at this point in the history
Don't try and check if the notification is open before updating it - just update it anyway.

Potential fix for #111
  • Loading branch information
cp2004 committed Jan 17, 2022
1 parent 0cc923d commit 606e3f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions octoprint_onedrive_backup/static/src/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ function App () {
if (type === "upload_progress") {
const progress = message.data.data.content.progress

if (progressNotification && progressNotification.state === "open"){
if (progressNotification){
progressNotification.update({
text: `${progress}% complete`
text: `Upload ${progress}% complete...`
})
} else {
const notify = new Pnotify({
Expand Down

0 comments on commit 606e3f0

Please sign in to comment.