refactor: fixed more sonarcloud issues

This commit is contained in:
Corentin Thomasset 2021-06-01 00:07:04 +02:00
parent a866ac6070
commit b34eb4c1ac
No known key found for this signature in database
GPG key ID: DBD997E935996158
12 changed files with 32 additions and 109 deletions

View file

@ -62,9 +62,9 @@ export default class Bip39Generator extends Tool {
languageList = Object
.keys(bip39.wordlists)
.filter(k => !k.match(/[A-Z]{2}/))
.map(k => ({
text: k.split('_').map(k => k.charAt(0).toUpperCase() + k.slice(1)).join(' '),
value: k
.map(v => ({
text: v.split('_').map(k => k.charAt(0).toUpperCase() + k.slice(1)).join(' '),
value: v
}))
rules = {
@ -103,6 +103,3 @@ export default class Bip39Generator extends Tool {
}
</script>
<style scoped>
</style>