Skip to content

Commit

Permalink
Move onAssessmentUpdated Calls to Finally Block
Browse files Browse the repository at this point in the history
  • Loading branch information
Nephelite committed Jan 25, 2025
1 parent 966febb commit c802011
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -477,9 +477,10 @@ const AssessmentInternalForm: React.FC<AssessmentInternalFormProps> = ({
return;
}
setIsReleaseModalOpen(false);
onAssessmentUpdated();
} catch (error) {
console.error('Error releasing form:', error);
} finally {
onAssessmentUpdated();
}
};

Expand Down Expand Up @@ -520,9 +521,10 @@ const AssessmentInternalForm: React.FC<AssessmentInternalFormProps> = ({
}

setIsRecallModalOpen(false);
onAssessmentUpdated();
} catch (error) {
console.error('Error recalling form:', error);
} finally {
onAssessmentUpdated();
}
};

Expand Down

0 comments on commit c802011

Please sign in to comment.