Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Eric Anderson <[email protected]>
  • Loading branch information
thsparks and eanders-ms authored Jan 31, 2024
1 parent 8d0e79c commit d3a95cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion teachertool/src/state/reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default function reducer(state: AppState, action: Action): AppState {
};
}
case "SET_RUBRIC": {
updateStoredRubricAsync(state.rubric, action.rubric); // fire and forget, we don't need to wait for this to finish.
/*await*/ updateStoredRubricAsync(state.rubric, action.rubric); // fire and forget, we don't need to wait for this to finish.
return {
...state,
rubric: action.rubric,
Expand Down
2 changes: 1 addition & 1 deletion teachertool/src/transforms/tryLoadLastActiveRubricAsync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export async function tryLoadLastActiveRubricAsync() {
lastActiveRubric.criteria = lastActiveRubric.criteria.filter(validateCriteriaInstance);

if (lastActiveRubric.criteria.length !== initialCriteriaCount) {
postNotification(makeNotification("Some criteria could not be loaded.", 2000));
postNotification(makeNotification(lf("Some criteria could not be loaded."), 2000));
}

dispatch(Actions.setRubric(lastActiveRubric));
Expand Down

0 comments on commit d3a95cb

Please sign in to comment.