From e3c6997245708f98418d479d39cf3a1123a92419 Mon Sep 17 00:00:00 2001 From: Moe Date: Mon, 23 May 2022 01:26:05 +0700 Subject: [PATCH] Fix sessions page bug --- lib/screens/sessions.dart | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/screens/sessions.dart b/lib/screens/sessions.dart index 2dbbc39..86d2eb1 100644 --- a/lib/screens/sessions.dart +++ b/lib/screens/sessions.dart @@ -15,9 +15,13 @@ class Sessions extends StatefulWidget { class _SessionsState extends State { Future loadSessions() async { - var session = await getSession(); - var data = await getSessions(session); - return data; + try { + var session = await getSession(); + var data = await getSessions(session); + return data; + } catch(e) { + return []; + } } @override