Skip to content

Commit

Permalink
Fix package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
AchoArnold committed May 3, 2024
1 parent 58af6d1 commit 4a81eb0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"chart.js": "^4.4.2",
"chartjs-adapter-moment": "^1.0.1",
"core-js": "^3.36.1",
"date-fns": "^3.6.0",
"date-fns": "^2.30.0",
"dotenv": "^16.4.1",
"firebase": "^9.23.0",
"firebaseui": "^6.1.0",
Expand Down
6 changes: 3 additions & 3 deletions web/plugins/filters.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Vue from 'vue'
import * as fns from 'date-fns'
import { intervalToDuration, formatDuration } from 'date-fns'
import { parsePhoneNumber, isValidPhoneNumber } from 'libphonenumber-js'

Vue.filter('phoneNumber', (value: string): string => {
Expand Down Expand Up @@ -50,9 +50,9 @@ Vue.filter('billingPeriod', (value: string): string => {
})

Vue.filter('humanizeTime', (value: string): string => {
const durations = fns.intervalToDuration({
const durations = intervalToDuration({
start: new Date(),
end: new Date(value),
})
return fns.formatDuration(durations)
return formatDuration(durations)
})
11 changes: 7 additions & 4 deletions web/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4a81eb0

Please sign in to comment.