Skip to content

Commit

Permalink
load UI when backend doesn't exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
vordimous committed Jan 3, 2024
1 parent aa6d15b commit 76c5f9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/AuthError.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default {
inject: ['$error'],
computed: {
msg() {
return this.$auth0.error.value || this.$error.value;
return this.$auth0.error?.value || this.$error?.value;
}
}
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/TodoList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default {
eventStream.onerror = function (err) {
setTimeout(() => {
if (eventStream.readyState != EventSource.OPEN) {
if (error && eventStream.readyState != EventSource.OPEN) {
error.value = "Login Required";
}
}, 3000);
Expand Down

0 comments on commit 76c5f9b

Please sign in to comment.