From 3b806cff1830e3c325b7218cfc15e41265716a31 Mon Sep 17 00:00:00 2001 From: "Fredrick W. Warren" Date: Mon, 15 Feb 2021 12:16:09 -0800 Subject: [PATCH] 24.03 Handle Read Errors --- src/store/store-tasks.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/store/store-tasks.js b/src/store/store-tasks.js index da617ab..1084a25 100644 --- a/src/store/store-tasks.js +++ b/src/store/store-tasks.js @@ -83,6 +83,9 @@ const actions = { // initial chcek for data userTasks.once('value', snapshot => { commit('setTasksDownloaded', true) + }, error => { + showErrorMessage(error.message) + this.$router.replace('/auth') }) // child added