File tree Expand file tree Collapse file tree
packages/web/src/components/gcds-date-input Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -74,7 +74,9 @@ export class GcdsDateInput {
7474 }
7575
7676 private getFullOrCompactDate ( ) {
77- return this . format == 'full' || this . format == 'yyyy-mm-dd' ? 'full' : 'compact'
77+ return this . format == 'full' || this . format == 'yyyy-mm-dd'
78+ ? 'full'
79+ : 'compact' ;
7880 }
7981
8082 /**
@@ -83,7 +85,12 @@ export class GcdsDateInput {
8385 @Prop ( ) format ! : 'full' | 'compact' | 'yyyy-mm-dd' ;
8486 @Watch ( 'format' )
8587 validateFormat ( ) {
86- if ( ! this . format || ( this . format != 'full' && this . format != 'compact' && this . format != 'yyyy-mm-dd' ) ) {
88+ if (
89+ ! this . format ||
90+ ( this . format != 'full' &&
91+ this . format != 'compact' &&
92+ this . format != 'yyyy-mm-dd' )
93+ ) {
8794 this . errors . push ( 'format' ) ;
8895 } else if ( this . errors . includes ( 'format' ) ) {
8996 this . errors . splice ( this . errors . indexOf ( 'format' ) , 1 ) ;
You can’t perform that action at this time.
0 commit comments