|
@@ -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 = [
|