File tree Expand file tree Collapse file tree
pages/FinancePage/ReimbursementRequestDetailPage Expand file tree Collapse file tree Original file line number Diff line number Diff 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 */
167167export const denyReimbursementRequest = ( id : string ) => {
168168 return axios . post ( apiUrls . financeDenyReimbursementRequest ( id ) ) ;
Original file line number Diff line number Diff 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 */
270270export const useDenyReimbursementRequest = ( id : string ) => {
271271 const queryClient = useQueryClient ( ) ;
Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments