Skip to content

Commit

Permalink
added fixes for application (#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssani7 authored Nov 14, 2023
1 parent 2de4d4a commit 22aa11e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Dashboard/MyClientBriefsView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const MyClientBriefsView = (props: ClientViewProps) => {

useEffect(() => {
const getApplications = async () => {
if (!briefId) return
if (!briefId || !user.id) return

try {
setLoadingApplications(true);
Expand All @@ -70,7 +70,7 @@ const MyClientBriefsView = (props: ClientViewProps) => {
};

briefId && getApplications();
}, [briefId, loading, router]);
}, [briefId, loading, router, user.id]);

const goBack = () => {
router.query.briefId = [];
Expand Down

0 comments on commit 22aa11e

Please sign in to comment.