mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
refactor(FE): Refactor afterSubmit calls to improve readability
This commit is contained in:
@@ -44,7 +44,9 @@ const ChickinFormKandang = ({
|
||||
|
||||
const afterSubmitFormChickin = () => {
|
||||
setOpenChickin(true);
|
||||
afterSubmit && afterSubmit();
|
||||
if (afterSubmit) {
|
||||
afterSubmit();
|
||||
}
|
||||
refreshApprovals();
|
||||
};
|
||||
|
||||
|
||||
@@ -40,7 +40,9 @@ const ChickinLogsView = ({
|
||||
toast.error(approveChickinRes?.message as string);
|
||||
setChickinErrorMessage(approveChickinRes?.message as string);
|
||||
}
|
||||
afterSubmit && afterSubmit();
|
||||
if (afterSubmit) {
|
||||
afterSubmit();
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user