Browse Source

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>
pull/6879/head
Asifur Rahman Arnab 2 years ago committed by GitHub
parent
commit
84f93edd8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      libs/angular/src/auth/components/set-pin.component.ts

1
libs/angular/src/auth/components/set-pin.component.ts

@ -34,6 +34,7 @@ export class SetPinComponent implements OnInit { @@ -34,6 +34,7 @@ export class SetPinComponent implements OnInit {
async submit() {
if (Utils.isNullOrWhitespace(this.pin)) {
this.modalRef.close(false);
return;
}
const pinKey = await this.cryptoService.makePinKey(

Loading…
Cancel
Save