File tree 3 files changed +1
-10
lines changed
pages/UserSettingsPage/SchedulePage 3 files changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,7 @@ import {
3
3
type UserQuietHoursScheduleResponse ,
4
4
type UpdateUserQuietHoursScheduleRequest ,
5
5
} from "api/typesGenerated" ;
6
- import {
7
- type QueryClient ,
8
- type QueryOptions ,
9
- type MutationOptions ,
10
- } from "@tanstack/react-query" ;
6
+ import { type QueryClient , type QueryOptions } from "@tanstack/react-query" ;
11
7
12
8
export const userQuietHoursScheduleKey = ( userId : string ) => [
13
9
"settings" ,
Original file line number Diff line number Diff line change @@ -30,10 +30,6 @@ const fillForm = async ({
30
30
await user . click ( option ) ;
31
31
} ;
32
32
33
- const readCronExpression = ( ) => {
34
- return ;
35
- } ;
36
-
37
33
const submitForm = async ( ) => {
38
34
fireEvent . click ( screen . getByText ( "Update schedule" ) ) ;
39
35
} ;
Original file line number Diff line number Diff line change @@ -157,7 +157,6 @@ export const getMaxDeadlineChange = (
157
157
) : number => Math . abs ( deadline . diff ( extremeDeadline , "hours" ) ) ;
158
158
159
159
export const timeToCron = ( time : string , tz ?: string ) => {
160
- if ( ! time ) throw new Error ( "fuck" ) ;
161
160
const [ HH , mm ] = time . split ( ":" ) ;
162
161
let prefix = "" ;
163
162
if ( tz ) {
You can’t perform that action at this time.
0 commit comments