@appcorp/fusion-storybook 0.2.98 → 0.2.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -102,10 +102,9 @@ export const useStudentFeeModule = () => {
|
|
|
102
102
|
}, [dispatch]);
|
|
103
103
|
const resetRecordFormState = useCallback(() => {
|
|
104
104
|
var _a, _b;
|
|
105
|
-
const
|
|
105
|
+
const dueDay = (_a = workspace === null || workspace === void 0 ? void 0 : workspace.dueDateLength) !== null && _a !== void 0 ? _a : 1;
|
|
106
106
|
const dueDate = new Date();
|
|
107
|
-
|
|
108
|
-
dueDate.setDate(dueDate.getDate() + days);
|
|
107
|
+
dueDate.setDate(dueDay);
|
|
109
108
|
dispatch({
|
|
110
109
|
type: STUDENT_FEE_ACTION_TYPES.SET_ERRORS,
|
|
111
110
|
payload: { errors: {} },
|