Set Options with fallback values and better boolean handling

This commit is contained in:
Bubka
2020-03-13 22:10:36 +01:00
parent a545716798
commit 76ebf847df
7 changed files with 81 additions and 24 deletions

View File

@ -42,7 +42,7 @@
computed: {
displayedOtp() {
return Boolean(Number(appSettings.showTokenAsDot)) ? this.otp.replace(/[0-9]/g, '●') : this.otp
return appSettings.showTokenAsDot ? this.otp.replace(/[0-9]/g, '●') : this.otp
}
},