Skip to content
This repository was archived by the owner on Oct 11, 2024. It is now read-only.

Commit b24ef78

Browse files
committed
prettier fixes
1 parent 09312c6 commit b24ef78

File tree

1 file changed

+20
-9
lines changed

1 file changed

+20
-9
lines changed

ts/pages/account/dashboard.tsx

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,15 @@ export const Account: React.FC<AccountProps> = () => {
150150
const [pendingUnstakePoolSet, setPendingUnstakePoolSet] = React.useState<Set<string>>(new Set());
151151

152152
const apiClient = useAPIClient(networkId);
153-
const { stakingContract, unstake, withdrawStake, withdrawRewards, moveStake, currentEpochRewards, error: useStakeError } = useStake(
154-
networkId,
155-
providerState,
156-
);
153+
const {
154+
stakingContract,
155+
unstake,
156+
withdrawStake,
157+
withdrawRewards,
158+
moveStake,
159+
currentEpochRewards,
160+
error: useStakeError,
161+
} = useStake(networkId, providerState);
157162

158163
const hasDataLoaded = () => Boolean(delegatorData && poolWithStatsMap && availableRewardsMap);
159164
const hasRewards = () => Boolean(allTimeRewards.isGreaterThan(0) || expectedCurrentEpochRewards.isGreaterThan(0));
@@ -396,7 +401,7 @@ export const Account: React.FC<AccountProps> = () => {
396401
if (useStakeError) {
397402
setStakingError(useStakeError);
398403
}
399-
}, [useStakeError])
404+
}, [useStakeError]);
400405

401406
const accountLoaded = account && account.address;
402407

@@ -778,10 +783,16 @@ export const Account: React.FC<AccountProps> = () => {
778783
});
779784
}}
780785
/>
781-
<ErrorModal isOpen={Boolean(stakingError)} text={'More ETH is required to complete this transaction. Fund your wallet and try again.'} heading={'Insufficient ETH'} buttonText={'Dismiss'} onClose={() => {
782-
setStakingError(undefined);
783-
}} />
784-
786+
<ErrorModal
787+
isOpen={Boolean(stakingError)}
788+
text={'More ETH is required to complete this transaction. Fund your wallet and try again.'}
789+
heading={'Insufficient ETH'}
790+
buttonText={'Dismiss'}
791+
onClose={() => {
792+
setStakingError(undefined);
793+
}}
794+
/>
795+
785796
<DialogOverlay
786797
style={{ background: 'rgba(0, 0, 0, 0.75)', zIndex: 30 }}
787798
isOpen={shouldOpenStakeDecisionModal}

0 commit comments

Comments
 (0)