parent
10bdd664b0
commit
b2d59f751b
|
@ -32,8 +32,8 @@ const LatestAccountsPanel: React.FC<ILatestAccountsPanel> = ({ limit = 5 }) => {
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
dispatch(fetchUsers(['local', 'active'], 1, null, limit))
|
dispatch(fetchUsers(['local', 'active'], 1, null, limit))
|
||||||
.then((value) => {
|
.then((value: { count: number }) => {
|
||||||
setTotal((value as { count: number }).count);
|
setTotal(value.count);
|
||||||
})
|
})
|
||||||
.catch(() => {});
|
.catch(() => {});
|
||||||
}, []);
|
}, []);
|
||||||
|
|
Loading…
Reference in New Issue