summaryrefslogtreecommitdiff
path: root/src/server/api/common/is-native-token.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-04-16 01:05:21 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-04-16 01:05:21 +0900
commitbce8c5a315330e6500faae37f559a5d114df69d3 (patch)
tree1902bf52ef640afcacad6e72b100dc54cb64bdfe /src/server/api/common/is-native-token.ts
parentDoc: Add "Init DB" section (#4695) (diff)
downloadsharkey-bce8c5a315330e6500faae37f559a5d114df69d3.tar.gz
sharkey-bce8c5a315330e6500faae37f559a5d114df69d3.tar.bz2
sharkey-bce8c5a315330e6500faae37f559a5d114df69d3.zip
Refactor
Diffstat (limited to 'src/server/api/common/is-native-token.ts')
-rw-r--r--src/server/api/common/is-native-token.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/api/common/is-native-token.ts b/src/server/api/common/is-native-token.ts
index 22af84aad2..2833c570c8 100644
--- a/src/server/api/common/is-native-token.ts
+++ b/src/server/api/common/is-native-token.ts
@@ -1 +1 @@
-export default (token: string) => token.startsWith('0');
+export default (token: string) => token.length === 16;