Browse Source

added scanner logout toast

pull/5/head
Nareshkumar Rao 3 years ago
parent
commit
c30a51984e
  1. 7
      src/screens/ScannerScreen.js

7
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');
}

Loading…
Cancel
Save