File tree Expand file tree Collapse file tree 3 files changed +13
-5
lines changed
Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -90,8 +90,12 @@ export const DeployDetailsResult = ({ deploy }: DeployDetailsResultProps) => {
9090 key = { id }
9191 callerAccountInfo = { action . callerAccountInfo }
9292 recipientAccountInfo = { action . recipientAccountInfo }
93- toPublicKey = { action . recipientKey }
94- fromPublicKey = { action . callerPublicKey }
93+ toPublicKey = {
94+ action . recipientKey || action . recipientAccountInfo ?. accountHash !
95+ }
96+ fromPublicKey = {
97+ action . callerPublicKey || action . callerAccountInfo ?. accountHash !
98+ }
9599 fiatAmount = { action . fiatAmount }
96100 />
97101 ) ) }
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ export const ACCOUNT_DEPLOY_REFRESH_RATE = 30 * SECOND;
1313export const ACCOUNT_CASPER_ACTIVITY_REFRESH_RATE = 30 * SECOND ;
1414export const ERC20_TOKEN_ACTIVITY_REFRESH_RATE = 30 * SECOND ;
1515export const VALIDATORS_REFRESH_RATE = 30 * SECOND ;
16+ export const PENDING_DEPLOY_REFETCH_INTERVAL = 5 * SECOND ;
17+ export const DEPLOY_DETAILS_REFRESH_RATE = 30 * SECOND ;
1618
1719export const LOGIN_RETRY_ATTEMPTS_LIMIT = 5 ;
1820export const ERROR_DISPLAYED_BEFORE_ATTEMPT_IS_DECREMENTED = 1 ;
@@ -27,8 +29,6 @@ export const STAKE_COST_MOTES = '2500000000'; // 2.5 CSPR
2729export const DELEGATION_MIN_AMOUNT_MOTES = '500000000000' ; // 500 CSPR
2830export const MAX_DELEGATORS = 1200 ;
2931
30- export const PENDING_DEPLOY_REFETCH_INTERVAL = 5 * 1000 ;
31-
3232export const getBlockExplorerAccountUrl = (
3333 casperLiveUrl : string ,
3434 publicKey : string
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ import { useQuery } from '@tanstack/react-query';
22import { CasperNetwork } from 'casper-wallet-core/src/domain/common/common' ;
33import { useSelector } from 'react-redux' ;
44
5+ import { DEPLOY_DETAILS_REFRESH_RATE } from '@src/constants' ;
6+
57import { selectActiveNetworkSetting } from '@background/redux/settings/selectors' ;
68import { selectVaultActiveAccount } from '@background/redux/vault/selectors' ;
79import { deploysRepository } from '@background/wallet-repositories' ;
@@ -17,7 +19,9 @@ export const useFetchSingleDeploy = (deployHash?: string) => {
1719 deployHash : deployHash ?? '' ,
1820 activePublicKey : activeAccount ?. publicKey ?? '' ,
1921 network : network . toLowerCase ( ) as CasperNetwork
20- } )
22+ } ) ,
23+ refetchInterval : DEPLOY_DETAILS_REFRESH_RATE ,
24+ staleTime : DEPLOY_DETAILS_REFRESH_RATE
2125 } ) ;
2226
2327 return {
You can’t perform that action at this time.
0 commit comments