Skip to content

Commit

Permalink
fix: broken import
Browse files Browse the repository at this point in the history
  • Loading branch information
infiniteflower committed Nov 27, 2024
1 parent b802fec commit b44c49f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions ui/ducks/bridge-status/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ import {
BridgeStatusControllerState,
BridgeHistoryItem,
} from '../../../shared/types/bridge-status';
import { getCurrentChainId, getSelectedAddress } from '../../selectors';
import { getSelectedAddress } from '../../selectors';
import { Numeric } from '../../../shared/modules/Numeric';
import {
getCurrentChainId,
ProviderConfigState,
} from '../../../shared/modules/selectors/networks';

export type BridgeStatusAppState = {
export type BridgeStatusAppState = ProviderConfigState & {
metamask: {
bridgeStatusState: BridgeStatusControllerState;
};
Expand Down Expand Up @@ -41,7 +45,8 @@ export const selectBridgeHistoryForAccount = createSelector(
* Returns an array of sorted bridge history items for when the user's current chain is the destination chain for a bridge tx
*/
export const selectIncomingBridgeHistory = createSelector(
[selectBridgeHistoryForAccount, getCurrentChainId],
selectBridgeHistoryForAccount,
getCurrentChainId,
(bridgeHistory, currentChainId) => {
// Get all history items with dest chain that matches current chain
return Object.values(bridgeHistory)
Expand Down

0 comments on commit b44c49f

Please sign in to comment.