mirror of
https://github.com/bitwarden/browser.git
synced 2024-10-02 04:48:57 +02:00
fix : return from submit method when pin is empty (#5769)
Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com> Co-authored-by: Thomas Rittson <trittson@bitwarden.com>
This commit is contained in:
parent
f40f88a497
commit
84f93edd8e
@ -34,6 +34,7 @@ export class SetPinComponent implements OnInit {
|
|||||||
async submit() {
|
async submit() {
|
||||||
if (Utils.isNullOrWhitespace(this.pin)) {
|
if (Utils.isNullOrWhitespace(this.pin)) {
|
||||||
this.modalRef.close(false);
|
this.modalRef.close(false);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const pinKey = await this.cryptoService.makePinKey(
|
const pinKey = await this.cryptoService.makePinKey(
|
||||||
|
Loading…
Reference in New Issue
Block a user