Skip to content

Commit

Permalink
Merge pull request #415 from decert-me/chore-rate
Browse files Browse the repository at this point in the history
fix: toggle pageNum
  • Loading branch information
0xdwong authored May 15, 2024
2 parents 310b191 + e94ff51 commit 358f3d6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/views/Rating/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,12 @@ function RatingModal({ data, isMobile, onFinish }, ref) {
setPage(page);
selectOpenQs = list[newPage];
setSelectOpenQs({ ...selectOpenQs });
const obj = {
score: selectOpenQs?.rate ? Number((selectOpenQs?.rate * 0.2 * selectOpenQs.score).toFixed(1)) : null,
annotation: selectOpenQs?.annotation || ""
}
rateCache = obj;
setRateCache({...rateCache});
}

function setAnnotation(text) {
Expand Down

0 comments on commit 358f3d6

Please sign in to comment.