File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed
Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -33,19 +33,31 @@ export function validateUtmParams(utm: UserDBScheme['utm']): {
3333 invalidKeys : string [ ] ;
3434} {
3535 if ( ! utm ) {
36- return { isValid : true , validKeys : [ ] , invalidKeys : [ ] } ;
36+ return {
37+ isValid : true ,
38+ validKeys : [ ] ,
39+ invalidKeys : [ ] ,
40+ } ;
3741 }
3842
3943 // Check if utm is an object
4044 if ( typeof utm !== 'object' || Array . isArray ( utm ) ) {
41- return { isValid : false , validKeys : [ ] , invalidKeys : [ '_structure' ] } ;
45+ return {
46+ isValid : false ,
47+ validKeys : [ ] ,
48+ invalidKeys : [ '_structure' ] ,
49+ } ;
4250 }
4351
4452 const providedKeys = Object . keys ( utm ) ;
4553
4654 // Check if utm object is not empty
4755 if ( providedKeys . length === 0 ) {
48- return { isValid : true , validKeys : [ ] , invalidKeys : [ ] } ;
56+ return {
57+ isValid : true ,
58+ validKeys : [ ] ,
59+ invalidKeys : [ ] ,
60+ } ;
4961 }
5062
5163 const validKeys : string [ ] = [ ] ;
You can’t perform that action at this time.
0 commit comments