mirror of
https://github.com/RoboSats/robosats.git
synced 2025-09-13 00:56:22 +00:00
Fix federation summary
This commit is contained in:
@ -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(
|
||||
|
||||
Reference in New Issue
Block a user