Skip to content

Commit

Permalink
fix: removed redundant filter call in ocxtimeago
Browse files Browse the repository at this point in the history
  • Loading branch information
markuczy committed Mar 14, 2024
1 parent e2dd346 commit f0972d1
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { filter, map } from 'rxjs'
import { map } from 'rxjs'
import { IL10nsStrings, TimeagoIntl } from 'ngx-timeago'
import { strings as englishStrings } from 'ngx-timeago/language-strings/en'
import { strings as germanStrings } from 'ngx-timeago/language-strings/de'
Expand All @@ -16,7 +16,6 @@ export class OcxTimeagoIntl extends TimeagoIntl {
this.strings = englishStrings
userService.lang$
.pipe(
filter((v) => v !== undefined),
map((lang) => {
return this.getBestMatchLanguage(lang as string)
})
Expand Down

0 comments on commit f0972d1

Please sign in to comment.