Skip to content

Commit

Permalink
Delete usage of rulesInterview_nl (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
kharus authored Oct 18, 2024
1 parent 03d8585 commit 314d148
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions anyall-purs/src/AnyAll.purs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import Data.Argonaut.Encode (encodeJson)

import RuleLib.Interview

paint :: Json -> NLDict -> Item String -> Json
paint fm _ item =
paint :: Json -> Item String -> Json
paint fm item =
encodeJson $ relevant (decodeMarkingArgo fm) Unknown item

heads :: forall t2. Object t2 -> Array String
Expand Down
5 changes: 2 additions & 3 deletions src/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ function getLins(Interview) {
export default createStore({
state: {
marking: {},
rulesInterview_nl: AnyAll.interviewRules_nl,
topLD: AnyAll.nl4eng,
topLDBody: '',
whichPrompt: 0,
Expand All @@ -26,9 +25,9 @@ export default createStore({
questions(state) {
if (!state.topLDBody) {
const topLDBody = Object.values(state.topLD)[state.whichPrompt];
return AnyAll.paint(state.marking)(state.rulesInterview_nl)(topLDBody);
return AnyAll.paint(state.marking)(topLDBody);
}
return AnyAll.paint(state.marking)(state.rulesInterview_nl)(state.topLDBody);
return AnyAll.paint(state.marking)(state.topLDBody);
},
questionPrompt(state) {
const heads = AnyAll.heads(state.topLD);
Expand Down

0 comments on commit 314d148

Please sign in to comment.