@@ -24,18 +24,9 @@ const EarnBoxGlmLock: FC<EarnBoxGlmLockProps> = ({ classNameBox }) => {
2424 keyPrefix : 'components.dedicated.boxGlmLock' ,
2525 } ) ;
2626 const { isConnected } = useAccount ( ) ;
27- const { isAppWaitingForTransactionToBeIndexed, transactionsPending } = useTransactionLocalStore (
28- state => ( {
29- isAppWaitingForTransactionToBeIndexed : state . data . isAppWaitingForTransactionToBeIndexed ,
30- transactionsPending : state . data . transactionsPending ,
31- } ) ,
32- ) ;
33-
34- const isPendingLockingOrUnlockingTransaction =
35- isAppWaitingForTransactionToBeIndexed &&
36- ! ! transactionsPending ?. filter (
37- ( { type, isFinalized } ) => ( type === 'lock' || 'unlock' ) && ! isFinalized ,
38- ) . length ;
27+ const { isAppWaitingForTransactionToBeIndexed } = useTransactionLocalStore ( state => ( {
28+ isAppWaitingForTransactionToBeIndexed : state . data . isAppWaitingForTransactionToBeIndexed ,
29+ } ) ) ;
3930
4031 const [ isModalGlmLockOpen , setIsModalGlmLockOpen ] = useState < boolean > ( false ) ;
4132 const { data : estimatedEffectiveDeposit , isFetching : isFetchingEstimatedEffectiveDeposit } =
@@ -52,7 +43,7 @@ const EarnBoxGlmLock: FC<EarnBoxGlmLockProps> = ({ classNameBox }) => {
5243 doubleValueProps : {
5344 cryptoCurrency : 'golem' ,
5445 dataTest : 'BoxGlmLock__Section--current__DoubleValue' ,
55- isFetching : isFetchingDepositValue || isPendingLockingOrUnlockingTransaction ,
46+ isFetching : isFetchingDepositValue || isAppWaitingForTransactionToBeIndexed ,
5647 valueCrypto : depositsValue ,
5748 } ,
5849 isDisabled : isPreLaunch && ! isConnected ,
@@ -64,7 +55,7 @@ const EarnBoxGlmLock: FC<EarnBoxGlmLockProps> = ({ classNameBox }) => {
6455 coinPricesServerDowntimeText : '...' ,
6556 cryptoCurrency : 'golem' ,
6657 dataTest : 'BoxGlmLock__Section--effective__DoubleValue' ,
67- isFetching : isFetchingEstimatedEffectiveDeposit || isPendingLockingOrUnlockingTransaction ,
58+ isFetching : isFetchingEstimatedEffectiveDeposit || isAppWaitingForTransactionToBeIndexed ,
6859 valueCrypto : estimatedEffectiveDeposit ,
6960 } ,
7061 isDisabled : isPreLaunch && ! isConnected ,
0 commit comments