mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-23 12:39:59 +01:00
Eliminate if-statement (#3561)
Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
This commit is contained in:
parent
8608465864
commit
e9d519ea9a
@ -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 New Issue
Block a user