Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 494e647

Browse files
committed
fix: lint
1 parent 6c50177 commit 494e647

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

src/routes/WorkPeriods/components/PeriodFilters/index.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ import styles from "./styles.module.scss";
3636
const PeriodFilters = ({ className }) => {
3737
const dispatch = useDispatch();
3838
const filters = useSelector(getWorkPeriodsFilters);
39-
const { onlyFailedPayments, paymentStatuses, alertOptions, userHandle } = filters;
39+
const { onlyFailedPayments, paymentStatuses, alertOptions, userHandle } =
40+
filters;
4041

4142
const onToggleFailedPayments = useCallback(
4243
(on) => {

src/services/workPeriods.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,9 @@ export const fetchWorkPeriods = (rbId, source) => {
9999
export const fetchResourceBookings = (params) => {
100100
const source = CancelToken.source();
101101
return [
102-
axios.get(
103-
`${RB_API_URL}?${buildRequestQuery(params)}`,
104-
{ cancelToken: source.token }
105-
),
102+
axios.get(`${RB_API_URL}?${buildRequestQuery(params)}`, {
103+
cancelToken: source.token,
104+
}),
106105
source,
107106
];
108107
};

src/store/thunks/workPeriods.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,13 @@ export const loadWorkPeriodsPage = async (dispatch, getState) => {
113113
["workPeriods.userHandle"]: userHandle,
114114
["workPeriods.startDate"]: startDate.format(DATE_FORMAT_API),
115115
["workPeriods.paymentStatus"]: paymentStatuses,
116-
["billingAccountId"]: filters.alertOptions.BA_NOT_ASSIGNED ? 0: null,
117-
["workPeriods.isFirstWeek"]: filters.alertOptions.ONBOARDING_WEEK ? true : null,
118-
["workPeriods.isLastWeek"]: filters.alertOptions.LAST_BOOKING_WEEK ? true : null,
116+
["billingAccountId"]: filters.alertOptions.BA_NOT_ASSIGNED ? 0 : null,
117+
["workPeriods.isFirstWeek"]: filters.alertOptions.ONBOARDING_WEEK
118+
? true
119+
: null,
120+
["workPeriods.isLastWeek"]: filters.alertOptions.LAST_BOOKING_WEEK
121+
? true
122+
: null,
119123
["workPeriods.payments.status"]: onlyFailedPayments
120124
? API_CHALLENGE_PAYMENT_STATUS.FAILED
121125
: null,

0 commit comments

Comments
 (0)