Skip to content

Commit bd06155

Browse files
fix prettier warnings
1 parent 582d4de commit bd06155

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

packages/web/src/components/gcds-date-input/gcds-date-input.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)