Skip to content

Commit

Permalink
fix : return from submit method when pin is empty (bitwarden#5769)
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>
Co-authored-by: Thomas Rittson <trittson@bitwarden.com>
  • Loading branch information
3 people authored and BlackDex committed Nov 21, 2023
1 parent 3ae31f6 commit 8c5928e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/angular/src/auth/components/set-pin.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 8c5928e

Please sign in to comment.