Skip to content

Commit

Permalink
fix: added filter support for fallback currency
Browse files Browse the repository at this point in the history
  • Loading branch information
sabbir1991 committed Oct 26, 2018
1 parent 35a757c commit 7c1bfb6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils/Bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ Vue.component('multiselect', Multiselect)

Vue.mixin( Mixin );

Vue.filter('currency', function (value) {
return accounting.formatMoney(value, dokan.currency);
})

Vue.filter('capitalize', function (value) {
if (!value) return ''
value = value.toString()
Expand Down

0 comments on commit 7c1bfb6

Please sign in to comment.