Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (prevProps.activeSnapLens.id !== this.props.activeSnapLens.id ||
- // if coming back from review directly to mic and switching to video
- (this.props.activeSnapLens.id === '' && prevProps.recMode !== this.props.recMode && this.props.recMode === 'mic')) {
- if (this.props.activeSnapLens.id === '') {
- babylonRenderer.clearSnapLens();
- this.props.toggleSnapLensLoadingOverlay(false);
- } else {
- this.setLens(this.props.activeSnapLens);
- }
- }
- // becomes
- if (prevProps.activeSnapLens.id !== this.props.activeSnapLens.id && this.props.activeSnapLens.id !== '') {
- this.setLens(this.props.activeSnapLens);
- } else if (prevProps.activeSnapLens.id !== this.props.activeSnapLens.id || (this.props.activeSnapLens.id === '' && prevProps.recMode !== this.props.recMode && this.props.recMode === 'mic')) {
- babylonRenderer.clearSnapLens();
- this.props.toggleSnapLensLoadingOverlay(false);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement