Skip to content

Commit

Permalink
Merge pull request #60 from SMUGitGeeks/SBRP-113-solve-issue-where-st…
Browse files Browse the repository at this point in the history
…aff-can-withdraw-application-despite-after-closed-role-listing

[SBRP-113] Fix redux issue
  • Loading branch information
Yoksim authored Nov 7, 2023
2 parents 112fc3c + 7c780fa commit 89490d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/actions/applications.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const getApplicationsByStaffId = (payload: GetApplicationsByStaffIdPayloa
list_of_applications_by_staff_id.data[i].role_name = list_of_all_role_listing_details.data[j].role_name;
list_of_applications_by_staff_id.data[i].rl_status = list_of_all_role_listing_details.data[j].rl_status;
const date = new Date();
if (date > new Date(list_of_all_role_listing_details.data[i]["rl_close"])) {
if (date > new Date(list_of_applications_by_staff_id.data[i]["rl_close"])) {
list_of_applications_by_staff_id.data[i].rl_status = "Closed";
} else {
list_of_applications_by_staff_id.data[i].rl_status = "Open";
Expand Down

0 comments on commit 89490d3

Please sign in to comment.