mirror of
https://github.com/bitwarden/browser
synced 2024-12-25 17:32:46 +01:00
[ref] Improved readability for #1441
This commit is contained in:
parent
74a9ff7992
commit
8d2b84cbb3
@ -254,7 +254,7 @@ export default class AutofillService implements AutofillServiceInterface {
|
||||
}
|
||||
}
|
||||
|
||||
const autoFillResponse = await this.doAutoFill({
|
||||
const totpCode = await this.doAutoFill({
|
||||
cipher: cipher,
|
||||
pageDetails: pageDetails,
|
||||
skipTotp: !fromCommand,
|
||||
@ -265,12 +265,12 @@ export default class AutofillService implements AutofillServiceInterface {
|
||||
fillNewPassword: fromCommand,
|
||||
});
|
||||
|
||||
// Only update last used index if doAutoFill didn't throw an exception
|
||||
// Update last used index as autofill has succeed
|
||||
if (fromCommand) {
|
||||
this.cipherService.updateLastUsedIndexForUrl(tab.url);
|
||||
}
|
||||
|
||||
return autoFillResponse;
|
||||
return totpCode;
|
||||
}
|
||||
|
||||
// Helpers
|
||||
|
Loading…
Reference in New Issue
Block a user