fix: update error message for getData method

This commit is contained in:
Leon Xu committed 2022-01-01 12:42:00 -08:00
1 parent 19351094f1
commit 700d4451ac
1 file changed
+1 -6
+1 -6
View File
@@ -90,7 +90,6 @@ export default {
// Create data / vars
const data = ref([]);
const dataLoaded = ref(null);
const errorMsg = ref(null);
// Get data
const getData = async () => {
@@ -102,11 +101,7 @@ export default {
data.value = workouts;
dataLoaded.value = true;
} catch (error) {
errorMsg.value =
"Error: There's an error reading your data, please try again later";
setTimeout(() => {
errorMsg.value = false;
}, 5000);
console.warn(error);
}
};