Skip to content

Commit

Permalink
fix: toggle pageNum
Browse files Browse the repository at this point in the history
  • Loading branch information
Oaciqihz committed May 15, 2024
1 parent 40e8af9 commit e94ff51
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 e94ff51

Please sign in to comment.