feat(trading): do not pin row of existing account as it will become duplicated (#2942)
This commit is contained in:
parent
4286bc37b3
commit
c73b01d549
@ -76,7 +76,7 @@ describe('AccountsTable', () => {
|
||||
expect(rows.length).toBe(6);
|
||||
});
|
||||
|
||||
it('should add first asset as pinned', async () => {
|
||||
it('should not add first asset as pinned', async () => {
|
||||
await act(async () => {
|
||||
render(
|
||||
<AccountTable
|
||||
@ -93,7 +93,7 @@ describe('AccountsTable', () => {
|
||||
);
|
||||
});
|
||||
const rows = await screen.findAllByRole('row');
|
||||
expect(rows.length).toBe(9);
|
||||
expect(rows.length).toBe(6);
|
||||
});
|
||||
|
||||
it('should get correct account data', () => {
|
||||
|
@ -58,7 +58,7 @@ export const AccountTable = forwardRef<AgGridReact, AccountTableProps>(
|
||||
};
|
||||
}
|
||||
}
|
||||
return currentPinnedAssetRow;
|
||||
return undefined;
|
||||
}, [pinnedAssetId, props.pinnedAsset, props.rowData]);
|
||||
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user