From 6e967dbdc347359ae38bd71565309b915bd2013f Mon Sep 17 00:00:00 2001 From: Cyber Majeed <73933962+cybermajeed@users.noreply.github.com> Date: Thu, 18 Apr 2024 14:42:16 +0400 Subject: [PATCH] Update dashboard.js --- mobile/app/dashboard.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/mobile/app/dashboard.js b/mobile/app/dashboard.js index 5fe7484..aa76cb7 100644 --- a/mobile/app/dashboard.js +++ b/mobile/app/dashboard.js @@ -15,6 +15,8 @@ import { useState } from "react"; export default function App() { const [name, setName] = useState(""); const [ttUrl, setTtUrl] = useState(""); + const loadingImg = + "https://firebasestorage.googleapis.com/v0/b/notifire-6339a.appspot.com/o/timetables%2Floading.png?alt=media&token=cdce32e0-f5d1-4eba-a106-a535a0ebb818"; onAuthStateChanged(auth, (user) => { if (user) { const name = user.email.split("@")[0].toUpperCase(); @@ -24,7 +26,8 @@ export default function App() { setTtUrl(url); }) .catch((error) => { - console.error(error); + console.log(error); + setTtUrl(loadingImg); }); } }); @@ -71,9 +74,7 @@ export default function App() {