fix problem when notification subscription isn't found

This commit is contained in:
2024-11-24 17:40:29 -07:00
parent 2758af6e6e
commit ee0bc33db5
4 changed files with 18 additions and 4 deletions

View File

@@ -362,6 +362,20 @@ export default class App extends Vue {
);
});
if (!subscription) {
// there is no endpoint or auth for the server to compare, so we're done
this.$notify(
{
group: "alert",
type: "info",
title: "Finished",
text: "Notifications are off.", // a different message so I know there are none stored
},
5000,
);
return true;
}
const serverSubscription = {
...subscription,
};