mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-07-16 21:27:57 +08:00
Co-authored-by: sembauke <[email protected]> Co-authored-by: Oliver Eyton-Williams <[email protected]>
12 lines
347 B
JavaScript
12 lines
347 B
JavaScript
import { takeEvery, call } from 'redux-saga/effects';
|
|
|
|
import { incrementCurrentCount } from '../utils/session-storage';
|
|
|
|
function* SessionCompletedChallengesSaga() {
|
|
yield call(incrementCurrentCount);
|
|
}
|
|
|
|
export function createSessionCompletedChallengesSaga(types) {
|
|
return [takeEvery(types.submitComplete, SessionCompletedChallengesSaga)];
|
|
}
|