diff --git a/.github/workflows/canopeum_deploy.yml b/.github/workflows/canopeum_deploy.yml index e767646e..e1d089ad 100644 --- a/.github/workflows/canopeum_deploy.yml +++ b/.github/workflows/canopeum_deploy.yml @@ -28,7 +28,7 @@ on: jobs: GetDateTime: runs-on: ubuntu-latest - if: ${{ inputs.deploy_frontend && inputs.deploy_backend }} + if: ${{ github.event_name == 'push' || (inputs.deploy_frontend && inputs.deploy_backend) }} outputs: DATETIME: ${{ steps.datetime.outputs.DATETIME }} steps: @@ -39,7 +39,7 @@ jobs: BuildFrontend: name: Build & Deploy Frontend runs-on: ubuntu-latest - if: ${{ inputs.deploy_frontend }} + if: ${{ github.event_name == 'push' || inputs.deploy_frontend }} needs: [GetDateTime] defaults: run: @@ -68,7 +68,7 @@ jobs: BuildBackend: name: Build & Deploy Backend runs-on: ubuntu-latest - if: ${{ inputs.deploy_backend }} + if: ${{ github.event_name == 'push' || inputs.deploy_backend }} needs: [GetDateTime] defaults: run: diff --git a/canopeum_frontend/src/components/Navbar.tsx b/canopeum_frontend/src/components/Navbar.tsx index eec70785..c7a1867d 100644 --- a/canopeum_frontend/src/components/Navbar.tsx +++ b/canopeum_frontend/src/components/Navbar.tsx @@ -58,7 +58,7 @@ const Navbar = () => { void changeLanguage(newLanguage) } - const { isAuthenticated, logout } = useContext(AuthenticationContext) + const { isAuthenticated, showLogoutModal } = useContext(AuthenticationContext) return (