Skip to content

Commit

Permalink
Call network status in balance for miniprofile mutual connections
Browse files Browse the repository at this point in the history
  • Loading branch information
louilinn committed Oct 6, 2023
1 parent a1a8f3e commit 5ccd46e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/BalanceDisplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ import { TOKENS_PATH } from '~/routes';

import { useUpdateLoop } from '~/hooks/update';
import translate from '~/services/locale';
import { checkCurrentBalance, checkTokenState } from '~/store/token/actions';
import {
checkCurrentBalance,
checkTokenState,
checkTrustState,
} from '~/store/token/actions';
import { IconCircles } from '~/styles/icons';
import { ISSUANCE_RATE_MONTH } from '~/utils/constants';
import { formatCirclesValue } from '~/utils/format';
Expand Down Expand Up @@ -46,6 +50,7 @@ const BalanceDisplay = ({ underlineAtHover = true }) => {
useUpdateLoop(async () => {
await dispatch(checkTokenState());
await dispatch(checkCurrentBalance());
await dispatch(checkTrustState());
});

// Token is apparently deployed, wait for the incoming data
Expand Down

0 comments on commit 5ccd46e

Please sign in to comment.