Skip to content

Commit

Permalink
avoid undefined locale
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmbabhazi committed Oct 22, 2024
1 parent 27ed2e0 commit ae68c88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ui-core/shared/src/lib/pipes/date-format.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { Store } from '@gauzy/ui-core/core';
export class DateFormatPipe implements PipeTransform {
dateFormat: string = 'd MMMM, y';
regionCode: string = RegionsEnum.EN;
locale!: string;
locale: string;

constructor(private readonly store: Store) {
this.store.selectedOrganization$
Expand Down Expand Up @@ -64,7 +64,7 @@ export class DateFormatPipe implements PipeTransform {
}

if (isEmpty(locale)) {
locale = this.locale;
locale = this.locale || this.regionCode;
}

if (date && defaultFormat) {
Expand Down

0 comments on commit ae68c88

Please sign in to comment.