Fix federation summary

This commit is contained in:
KoalaSat
2024-03-14 21:01:56 +01:00
parent 58434df320
commit eb37c03969

View File

@ -37,7 +37,9 @@ const ExchangeDialog = ({ open = false, onClose }: Props): JSX.Element => {
const { federation, federationUpdatedAt } = useContext(FederationContext);
const [loadingProgress, setLoadingProgress] = useState<number>(0);
useEffect(() => federation.updateExchange(), []);
useEffect(() => {
if (open) federation.updateExchange();
}, [open]);
useEffect(() => {
setLoadingProgress(