Skip to content

Commit

Permalink
Refactor openRequests filter logic to include requests with status "c…
Browse files Browse the repository at this point in the history
…reated"
  • Loading branch information
corovcam committed Sep 7, 2024
1 parent ef7336e commit 57e208e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { useRequestContext } from "../contexts";
*/
export const RequestListContainer = ({ requestsLoading, requestsLoadingError }) => {
const { requests } = useRequestContext();
let openRequests = requests.filter(request => request.is_open);
let openRequests = requests.filter(request => request.is_open || request?.status_code.toLowerCase() === "created");

return (
(requestsLoading || requestsLoadingError || !_isEmpty(openRequests)) &&
Expand Down

0 comments on commit 57e208e

Please sign in to comment.