wip: Frontend for quick pay
This commit is contained in:
@@ -44,7 +44,13 @@ export default function RootLayout({ children }: { children: React.ReactNode })
|
||||
const data = await response.json();
|
||||
if (response.ok) {
|
||||
return data;
|
||||
} else {
|
||||
}
|
||||
else if(response.status ===401 ||data.message === 'invalid or expired token'){
|
||||
// console.log(data);
|
||||
localStorage.removeItem("access_token");
|
||||
router.push('/login');
|
||||
}
|
||||
else {
|
||||
notifications.show({
|
||||
withBorder: true,
|
||||
color: "red",
|
||||
|
Reference in New Issue
Block a user