How about:

    var passcodeValid = ('success' === this.overlay.dataset.passcodeStatus);

For better readability?