Skip to content

Commit

Permalink
Yj fix/console errors (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
jagnani73 authored Oct 17, 2024
1 parent d42e0fe commit 1ba0bbd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/Atoms/Address/Address.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const Address: React.FC<AddressProps> = ({
}

return (
<p className="flex items-center gap-x-1">
<span className="flex items-center gap-x-1">
{avatar && <AddressAvatar {...avatar} address={address} />}

{actionableWrapper(
Expand All @@ -23,6 +23,6 @@ export const Address: React.FC<AddressProps> = ({
)}

<CopyData data={address} />
</p>
</span>
);
};
10 changes: 8 additions & 2 deletions src/components/Shared/TableList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
flexRender,
type Row,
} from "@tanstack/react-table";
import { useCallback, useState } from "react";
import { Fragment, useCallback, useState } from "react";

export const TableList: <T>(props: TableListProps<T>) => React.ReactNode = ({
columns,
Expand Down Expand Up @@ -119,7 +119,13 @@ export const TableList: <T>(props: TableListProps<T>) => React.ReactNode = ({
) : (
table
.getRowModel()
.rows.map((row) => defaultRow(row))
.rows.map((row) => (
<Fragment
key={Math.random().toString()}
>
{defaultRow(row)}
</Fragment>
))
)
) : (
<TableRow>
Expand Down

0 comments on commit 1ba0bbd

Please sign in to comment.