mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-19 10:07:46 -05:00
10 lines
253 B
JavaScript
10 lines
253 B
JavaScript
import { map } from 'rxjs/operators';
|
|
import { ofType } from 'redux-observable';
|
|
import { types, unlockCode } from './';
|
|
|
|
function codeLockEpic(action$) {
|
|
return action$.pipe(ofType(types.updateFile), map(unlockCode));
|
|
}
|
|
|
|
export default codeLockEpic;
|