Skip to content

Commit

Permalink
VueUiOnion minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
graphieros committed Mar 22, 2024
1 parent d5585e5 commit 003d4f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vue-data-ui",
"private": false,
"version": "2.0.35",
"version": "2.0.36",
"type": "module",
"description": "A user-empowering data visualization Vue components library",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion src/components/vue-ui-onion.vue
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ const dataTable = computed(() => {
return [
`<span style="color:${ds.color}">⬤</span> ${ds.name}`,
`${Number(ds.percentage ?? 0).toFixed(onionConfig.value.table.td.roundingPercentage).toLocaleString()}%`,
`${ds.prefix}${![null, undefined].includes(ds.value) ? (ds.value.toFixed(onionConfig.value.table.td.roundingValue)).toLocaleString() : '-'}${ds.suffix}`
`${ds.prefix}${![null, undefined, NaN, 'NaN'].includes(ds.value) ? (ds.value.toFixed(onionConfig.value.table.td.roundingValue)).toLocaleString() : '-'}${ds.suffix}`
]
})
Expand Down

0 comments on commit 003d4f5

Please sign in to comment.