Skip to content
This repository has been archived by the owner on Jul 1, 2023. It is now read-only.

Commit

Permalink
fix: randomize review
Browse files Browse the repository at this point in the history
  • Loading branch information
minhloi committed Jul 23, 2020
1 parent 1bd3716 commit 9f84897
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/ulangi-saga/src/sagas/SpacedRepetitionSaga.ts
Expand Up @@ -16,6 +16,7 @@ import {
SpacedRepetitionModel,
VocabularyModel,
} from '@ulangi/ulangi-local-database';
import * as _ from 'lodash';
import * as moment from 'moment';
import { call, fork, put, take } from 'redux-saga/effects';
import { PromiseType } from 'utility-types';
Expand Down Expand Up @@ -113,7 +114,7 @@ export class SpacedRepetitionSaga extends ProtectedSaga {
ActionType.SPACED_REPETITION__FETCH_VOCABULARY_SUCCEEDED,
{
setId,
vocabularyList,
vocabularyList: _.shuffle(vocabularyList),
}
)
);
Expand Down
3 changes: 2 additions & 1 deletion packages/ulangi-saga/src/sagas/WritingSaga.ts
Expand Up @@ -13,6 +13,7 @@ import { WritingScheduler } from '@ulangi/ulangi-common/core';
import { ErrorCode, VocabularyStatus } from '@ulangi/ulangi-common/enums';
import { Vocabulary } from '@ulangi/ulangi-common/interfaces';
import { VocabularyModel, WritingModel } from '@ulangi/ulangi-local-database';
import * as _ from 'lodash';
import * as moment from 'moment';
import { call, fork, put, take } from 'redux-saga/effects';
import { PromiseType } from 'utility-types';
Expand Down Expand Up @@ -102,7 +103,7 @@ export class WritingSaga extends ProtectedSaga {
yield put(
createAction(ActionType.WRITING__FETCH_VOCABULARY_SUCCEEDED, {
setId,
vocabularyList,
vocabularyList: _.shuffle(vocabularyList),
})
);
}
Expand Down

0 comments on commit 9f84897

Please sign in to comment.