Skip to content

Commit aa45bcb

Browse files
committed
Move baseYear into books adoption JSON
[CORE-758]
1 parent 82df9e1 commit aa45bcb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/app/pages/adoption/how-using/how-using.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,12 @@ export default function HowUsing({selectedBooks, year}) {
8686
name: title,
8787
students: Number(bookData[name]),
8888
howUsing: useData[name],
89-
language
89+
language,
90+
baseYear: year
9091
});
9192
});
9293

9394
return JSON.stringify({
94-
baseYear: year,
9595
Books: rewrittenBookData
9696
});
9797
}, [bookData, useData, selectedBooks, year]);

src/app/pages/renewal-form/renewal-form.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ function HiddenFields({
6363
const json = React.useMemo(
6464
() =>
6565
JSON.stringify({
66-
baseYear: year,
6766
Books: selectedItems.map(({value: name}) => ({
6867
name,
69-
students: +counts[name]
68+
students: +counts[name],
69+
baseYear: year
7070
}))
7171
}),
7272
[selectedItems, counts, year]

0 commit comments

Comments
 (0)