Skip to content

Commit

Permalink
fixup! feat: display captcha component according to the related ICM c…
Browse files Browse the repository at this point in the history
…aptcha service (#200)
  • Loading branch information
dhhyi committed May 18, 2020
1 parent c4d92a7 commit d3ab2d7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/app/extensions/captcha/facades/captcha.facade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Store, select } from '@ngrx/store';
import { Observable } from 'rxjs';
import { filter, map, switchMap, switchMapTo } from 'rxjs/operators';

import { getFeatures, getServerConfigParameter } from 'ish-core/store/configuration';
import { getServerConfigParameter } from 'ish-core/store/configuration';
import { whenTruthy } from 'ish-core/utils/operators';

// tslint:disable:member-ordering
Expand Down Expand Up @@ -44,8 +44,6 @@ export class CaptchaFacade {
captchaActive$(key: string): Observable<boolean> {
return this.store.pipe(
filter(() => !!key),
select(getFeatures),
filter(features => !features.includes('noCaptcha')),
switchMapTo(this.captchaVersion$),
map(x => !!x),
whenTruthy()
Expand Down

0 comments on commit d3ab2d7

Please sign in to comment.