- added saving evaluation v2;

This commit is contained in:
Vitalii Kiiko
2025-02-04 13:05:57 +01:00
parent eff571f054
commit 6545116188
11 changed files with 843 additions and 442 deletions

View File

@@ -1,4 +1,4 @@
import React, { useEffect, useState } from 'react';
import React, { useEffect, useState, useCallback } from 'react';
import { __ } from '@wordpress/i18n';
import { pathOr } from 'ramda';
import NumberFlow from '@number-flow/react';
@@ -22,9 +22,9 @@ const SoccorsoIstruttorioPreInstructor = () => {
const errGetStats = () => {}
const getStatValue = (key, fallback = '') => {
const getStatValue = useCallback((key, fallback = '') => {
return pathOr(fallback, [key], mainStats);
}
}, [mainStats]);
useEffect(() => {
DashboardService.getAmendmentsStats(getStats, errGetStats);