From da239feb703c568a345b62fc73d183568baee8ae Mon Sep 17 00:00:00 2001 From: Aarish Shah Mohsin Date: Wed, 10 Jan 2024 20:49:20 +0530 Subject: [PATCH] Fixed login screen reappearing after successful login (#1415) --- src/screens/OrgList/OrgList.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/screens/OrgList/OrgList.tsx b/src/screens/OrgList/OrgList.tsx index abfcae17c3..64eb5b3d6e 100644 --- a/src/screens/OrgList/OrgList.tsx +++ b/src/screens/OrgList/OrgList.tsx @@ -83,6 +83,9 @@ function orgList(): JSX.Element { error?: Error | undefined; } = useQuery(USER_ORGANIZATION_LIST, { variables: { id: localStorage.getItem('id') }, + context: { + headers: { authorization: `Bearer ${localStorage.getItem('token')}` }, + }, }); const {