Skip to content

Commit

Permalink
used utility function for handle alert component issue
Browse files Browse the repository at this point in the history
Signed-off-by: pranalidhanavade <[email protected]>
  • Loading branch information
pranalidhanavade committed Oct 9, 2024
1 parent 46b10c7 commit cb60e16
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/User/UserDashBoard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ const UserDashBoard = () => {
total: totalPages,
});
} else {
// setError(response as string);
setError('Failed to fetch invitations');
setError(response as string);
// setError('Failed to fetch invitations');
}
} catch(err) {
setError('An unexpected error occurred');
Expand Down Expand Up @@ -162,8 +162,8 @@ const UserDashBoard = () => {
total: totalPages,
});
} else {
// setError(response as string);
setError('Failed to fetch invitations');
setError(response as string);
// setError('Failed to fetch invitations');
}
}
catch(err){
Expand Down

0 comments on commit cb60e16

Please sign in to comment.