Skip to content

Commit 41acb99

Browse files
authored
Implement work-around/fix for incorrect render of manually added HOTP tokens
The parsed `<option>` returns the OTP.type in string value, instead of the required integer type. Later in execution, the code can't handle the string in comparisons, etc. This just parseInts the string so that it's correctly handled.
1 parent 6f2c492 commit 41acb99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Popup/AddAccountPage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export default Vue.extend({
103103
) {
104104
type = OTPType.hhex;
105105
} else {
106-
type = this.newAccount.type;
106+
type = parseInt(this.newAccount.type);
107107
}
108108
109109
if (type === OTPType.hhex || type === OTPType.hotp) {

0 commit comments

Comments
 (0)