From c30a51984e09e612a79d19d4ca528ebcc704089a Mon Sep 17 00:00:00 2001 From: Nareshkumar Rao <_accounts@nareshkumarrao.com> Date: Thu, 29 Jul 2021 22:26:21 +0200 Subject: [PATCH] added scanner logout toast --- src/screens/ScannerScreen.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/screens/ScannerScreen.js b/src/screens/ScannerScreen.js index 105e92d..eb2a9d1 100644 --- a/src/screens/ScannerScreen.js +++ b/src/screens/ScannerScreen.js @@ -55,7 +55,12 @@ function Scanner() { duration: 2000, }); } else { - console.log('Time to logout!'); + toast({ + title: "You're not logged in!", + description: "Please log in and try again!", + status: 'error', + duration: 2000, + }); dispatch(authLogout()); history.push('/login'); }