Skip to content

Commit 76e335a

Browse files
committed
1611 comments
1 parent 1a365e9 commit 76e335a

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/frontend/src/apis/finance.api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export const approveReimbursementRequest = (id: string) => {
162162
* Deny Reimbursement Request
163163
*
164164
* @param id of the reimbursement request being denied by finance
165-
* @returns the reimbursement request with the given id
165+
* @returns the denied reimbursement status
166166
*/
167167
export const denyReimbursementRequest = (id: string) => {
168168
return axios.post(apiUrls.financeDenyReimbursementRequest(id));

src/frontend/src/hooks/finance.hooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ export const useApproveReimbursementRequest = (id: string) => {
265265
* Custom react hook to deny a reimbursement request for the finance team
266266
*
267267
* @param id id of the reimbursement request to deny
268-
* @returns the denied reimbursement request
268+
* @returns the denied reimbursement request status
269269
*/
270270
export const useDenyReimbursementRequest = (id: string) => {
271271
const queryClient = useQueryClient();

src/frontend/src/pages/FinancePage/ReimbursementRequestDetailPage/ReimbursementRequestDetailsView.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ const ReimbursementRequestDetailsView: React.FC<ReimbursementRequestDetailsViewP
8080
const handleDeny = () => {
8181
try {
8282
denyReimbursementRequest();
83+
setShowDenyModal(false);
8384
} catch (e: unknown) {
8485
if (e instanceof Error) {
8586
toast.error(e.message, 3000);

0 commit comments

Comments
 (0)