Skip to content

Commit

Permalink
Fixed: logout button issue (#419)
Browse files Browse the repository at this point in the history
  • Loading branch information
shuhaib-aot authored Jan 16, 2025
1 parent b3de26a commit 70be2e1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions forms-flow-admin/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ const Admin = React.memo(({ props }: any) => {
}
}, []);

React.useEffect(()=>{
if(instance){
publish("FF_AUTH", instance);
}
},[instance])

React.useEffect(()=>{
if(!isAuth) return
const locale = localStorage.getItem("i18nextLng")
Expand Down
4 changes: 2 additions & 2 deletions forms-flow-nav/src/sidenav/Sidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,8 @@ const Sidebar = React.memo(({ props, sidenavHeight="100%" }) => {
});

Sidebar.propTypes = {
subscribe: PropTypes.func.isRequired,
getKcInstance: PropTypes.func.isRequired,
subscribe: PropTypes.func,
getKcInstance: PropTypes.func,
publish: PropTypes.func,
sidenavHeight: PropTypes.string,
};
Expand Down

0 comments on commit 70be2e1

Please sign in to comment.