Yansen 2 anos atrás
pai
commit
9993ab203a
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2
    1
      src/pages/check/components/QuList.jsx

+ 2
- 1
src/pages/check/components/QuList.jsx Ver arquivo

@@ -13,7 +13,8 @@ export default (props) => {
13 13
   const [loading, startLoading, stopLoading] = useBool();
14 14
 
15 15
   const totalScore = React.useMemo(() => {
16
-    return list?.map((x) => x.maxScore).reduce((total, num) => total + num, 0);
16
+    const s = list?.map((x) => x.maxScore).reduce((total, num) => total + num, 0);
17
+    return Number(s || 0).toFixed(2);
17 18
   }, [list]);
18 19
 
19 20
   const columns = [