We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17842c8 commit 0bbeaddCopy full SHA for 0bbeadd
1 file changed
frontend/plan/actions/index.js
@@ -204,7 +204,7 @@ export const removeBreakFrontend = (breakId) => ({
204
export const checkForDefaultSchedules = (schedulesFromBackend) => (
205
dispatch
206
) => {
207
- if (!schedulesFromBackend.find((acc, { name }) => acc || name === "cart")) {
+ if (!schedulesFromBackend.find(({ name }) => name === "cart")) {
208
dispatch(createScheduleOnBackend("cart"));
209
}
210
// if the user doesn't have an initial schedule, create it
0 commit comments