Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Commit

Permalink
fix(stats): only use toLocaleString in display
Browse files Browse the repository at this point in the history
Closes: #330
  • Loading branch information
rayrutjes committed Oct 17, 2017
1 parent de3160d commit 62699e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Stats.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div :class="bem()" v-if="totalResults > 0">
<slot :totalResults="totalResults" :processingTime="processingTime" :query="query">
{{ totalResults }} results found in {{ processingTime }}ms
{{ totalResults.toLocaleString() }} results found in {{ processingTime.toLocaleString() }}ms
</slot>
</div>
</template>
Expand All @@ -20,7 +20,7 @@ export default {
return this.searchStore.query;
},
totalResults() {
return this.searchStore.totalResults.toLocaleString();
return this.searchStore.totalResults;
},
processingTime() {
return this.searchStore.processingTimeMS;
Expand Down

0 comments on commit 62699e9

Please sign in to comment.