File tree Expand file tree Collapse file tree 4 files changed +6
-11
lines changed Expand file tree Collapse file tree 4 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export async function createList(listData) {
2121 ) ;
2222 return response . data ;
2323 } catch ( error ) {
24- console . error ( 'Error creating list:' , error ) ;
24+ console . warn ( 'Error creating list:' , error , ... arguments ) ;
2525 throw error ;
2626 }
2727}
@@ -42,7 +42,7 @@ export async function deleteList(listId) {
4242 } ) ;
4343 return response . data ;
4444 } catch ( error ) {
45- console . error ( 'Error deleting list:' , error ) ;
45+ console . warn ( 'Error deleting list:' , error , ... arguments ) ;
4646 throw error ;
4747 }
4848}
Original file line number Diff line number Diff line change @@ -30,12 +30,7 @@ export default {
3030 methods: {
3131 validateInput (event ) {
3232 const num = Number (event .target .value );
33-
34- if (isNaN (num) || num <= 0 ) {
35- this .minutes = ' ' ; // Reset to empty if invalid
36- } else {
37- this .minutes = num; // Set valid number as minutes
38- }
33+ this .minutes = (num > 0 ? num : ' ' );
3934
4035 // Emit update:modelValue to enable two-way binding
4136 this .$emit (' update:modelValue' , String (this .minutes ));
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ const router = createRouter({
2929} ) ;
3030
3131// Navigation guard for protected routes
32- router . beforeEach ( ( to , from , next ) => {
32+ router . beforeEach ( function beforeEach ( to , from , next ) {
3333 const isAuthenticated = store . state . isAuthenticated ; // Get auth status from Vuex
3434
3535 if ( to . matched . some ( record => record . meta . requiresAuth ) ) {
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ const store = createStore({
3636 commit ( 'SET_SESSION_ID' , sessionId ) ;
3737 }
3838 } catch ( error ) {
39- console . error ( 'Not authenticated:' , error ) ;
39+ console . warn ( 'Not authenticated:' , error , ... arguments ) ;
4040 commit ( 'LOGOUT' ) ;
4141 }
4242 } ,
@@ -45,7 +45,7 @@ const store = createStore({
4545 await axios . post ( '/auth/logout' ) ;
4646 commit ( 'LOGOUT' ) ;
4747 } catch ( error ) {
48- console . error ( 'Logout error:' , error ) ;
48+ console . warn ( 'Logout error:' , error , ... arguments ) ;
4949 }
5050 } ,
5151 } ,
You can’t perform that action at this time.
0 commit comments