Skip to content

Commit

Permalink
chore: fix bug with swap data test id
Browse files Browse the repository at this point in the history
  • Loading branch information
pete-watters committed Mar 11, 2024
1 parent 8d8cf80 commit cca2669
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useNavigate } from 'react-router-dom';

import { SwapSelectors } from '@tests/selectors/swap.selectors';
import BigNumber from 'bignumber.js';
import { useFormikContext } from 'formik';
import { Stack } from 'leather-styles/jsx';
Expand Down Expand Up @@ -65,7 +66,7 @@ export function SwapAssetList({ assets }: SwapAssetList) {
}

return (
<Stack p="space.05" width="100%">
<Stack p="space.05" width="100%" data-testid={SwapSelectors.ChooseAssetList}>
{selectableAssets.map(asset => (
<SwapAssetItem
asset={asset}
Expand Down
6 changes: 1 addition & 5 deletions src/app/pages/swap/swap-choose-asset/swap-choose-asset.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { useLocation, useNavigate } from 'react-router-dom';

import { SwapSelectors } from '@tests/selectors/swap.selectors';
import { styled } from 'leather-styles/jsx';
import get from 'lodash.get';

Expand Down Expand Up @@ -39,10 +38,7 @@ export function SwapChooseAsset() {
/>
}
>
<SwapAssetList
data-testid={SwapSelectors.ChooseAssetList}
assets={isFromList ? swappableAssetsFrom : swappableAssetsTo}
/>
<SwapAssetList assets={isFromList ? swappableAssetsFrom : swappableAssetsTo} />
</Dialog>
);
}

0 comments on commit cca2669

Please sign in to comment.