mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-24 05:33:09 +02:00
Eliminate if-statement (#3561)
Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
This commit is contained in:
parent
e87b9cc019
commit
a2db4db963
1 changed files with 1 additions and 4 deletions
|
@ -1,6 +1,3 @@
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
|
|
||||||
Vue.filter('number', (n) => {
|
Vue.filter('number', n => n == null ? 'N/A' : n.toLocaleString());
|
||||||
if (n == null) return 'N/A';
|
|
||||||
return n.toLocaleString();
|
|
||||||
});
|
|
||||||
|
|
Loading…
Reference in a new issue