From 715a85d831a549efbf0d694ac7b7a37122704eaa Mon Sep 17 00:00:00 2001 From: Kamil Pyszkowski Date: Mon, 9 Dec 2024 14:23:13 +0100 Subject: [PATCH] Update selector condition --- dapp/src/store/wallet/walletSelector.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dapp/src/store/wallet/walletSelector.ts b/dapp/src/store/wallet/walletSelector.ts index dadb55c4d..9e2372513 100644 --- a/dapp/src/store/wallet/walletSelector.ts +++ b/dapp/src/store/wallet/walletSelector.ts @@ -15,7 +15,11 @@ export const selectActivities = createSelector( export const selectHasPendingActivities = createSelector( (state: RootState) => state.wallet.activities, - (activities) => activities.some((activity) => activity.status === "pending"), + (activities) => + activities.some( + (activity) => + activity.status === "pending" && activity.type === "deposit", + ), ) export const selectAllActivitiesCount = createSelector(