Skip to content

Commit

Permalink
Update selector condition
Browse files Browse the repository at this point in the history
  • Loading branch information
kpyszkowski committed Dec 9, 2024
1 parent eb24d44 commit 715a85d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dapp/src/store/wallet/walletSelector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 715a85d

Please sign in to comment.