diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-04-16 01:05:21 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-04-16 01:05:21 +0900 |
| commit | bce8c5a315330e6500faae37f559a5d114df69d3 (patch) | |
| tree | 1902bf52ef640afcacad6e72b100dc54cb64bdfe /src/server/api/common/is-native-token.ts | |
| parent | Doc: Add "Init DB" section (#4695) (diff) | |
| download | sharkey-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.ts | 2 |
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; |