diff --git a/libs/accounts/src/lib/accounts-table.spec.tsx b/libs/accounts/src/lib/accounts-table.spec.tsx index 8be586cff..bd822491f 100644 --- a/libs/accounts/src/lib/accounts-table.spec.tsx +++ b/libs/accounts/src/lib/accounts-table.spec.tsx @@ -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( { ); }); const rows = await screen.findAllByRole('row'); - expect(rows.length).toBe(9); + expect(rows.length).toBe(6); }); it('should get correct account data', () => { diff --git a/libs/accounts/src/lib/accounts-table.tsx b/libs/accounts/src/lib/accounts-table.tsx index 7d4efd57e..85df73839 100644 --- a/libs/accounts/src/lib/accounts-table.tsx +++ b/libs/accounts/src/lib/accounts-table.tsx @@ -58,7 +58,7 @@ export const AccountTable = forwardRef( }; } } - return currentPinnedAssetRow; + return undefined; }, [pinnedAssetId, props.pinnedAsset, props.rowData]); return (