Browse Source

fix(nc-gui): use isNaN instead

pull/5614/head
Wing-Kam Wong 2 years ago
parent
commit
1125d1001c
  1. 2
      packages/nc-gui/components/cell/Currency.vue

2
packages/nc-gui/components/cell/Currency.vue

@ -90,7 +90,7 @@ onMounted(() => {
<span v-else-if="vModel === null && showNull" class="nc-null">NULL</span> <span v-else-if="vModel === null && showNull" class="nc-null">NULL</span>
<!-- only show the numeric value as previously string value was accepted --> <!-- only show the numeric value as previously string value was accepted -->
<span v-else-if="/^\d+(\.\d+)?$/.test(vModel)">{{ currency }}</span> <span v-else-if="!isNaN(vModel)">{{ currency }}</span>
<!-- possibly unexpected string / null with showNull == false --> <!-- possibly unexpected string / null with showNull == false -->
<span v-else /> <span v-else />

Loading…
Cancel
Save