Skip to content

Commit

Permalink
Merge branch 'develop' into feat/member-signup
Browse files Browse the repository at this point in the history
  • Loading branch information
madan-ideas2it authored Dec 4, 2024
2 parents 8b32942 + 7bd75c8 commit d977287
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/back-office/components/member-table/member-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,12 @@ const MemberTable = (props: any) => {
function redirectToDetail(request) {
setIsLoading(true);
const route = ROUTE_CONSTANTS.MEMBER_VIEW;
const from = selectedTab === APP_CONSTANTS.PENDING_FLAG ? "pending": "approved";
router.push({
pathname: route,
query: {
id: request.id,
from,
},
});
}
Expand All @@ -84,7 +86,7 @@ const MemberTable = (props: any) => {
setIsLoading(true);
if (selectedTab === APP_CONSTANTS.PENDING_FLAG) {
await api.post(`${API_ROUTE.PARTICIPANTS_REQUEST}`, [data], configuration);
message = `Successfully ${(status === APP_CONSTANTS.REJECTED_FLAG ? APP_CONSTANTS.REJECTED_LABEL : APP_CONSTANTS.VERIFIED_FLAG)}`;
message = `Successfully ${(status === APP_CONSTANTS.REJECTED_FLAG ? APP_CONSTANTS.REJECTED_LABEL : (isVerified ? APP_CONSTANTS.VERIFIED_FLAG : APP_CONSTANTS.UNVERIFIED_FLAG))}`;
} else {
await api.post(`${API_ROUTE.ADMIN_APPROVAL}`, { memberIds: [id] }, configuration);
message = `Successfully ${APP_CONSTANTS.VERIFIED_FLAG}`;
Expand Down

0 comments on commit d977287

Please sign in to comment.