Skip to content
Snippets Groups Projects
Commit 4c243bc0 authored by Jerome DESCHAMPS's avatar Jerome DESCHAMPS
Browse files

Fixed type bug

parent 8a71182d
No related branches found
No related tags found
1 merge request!2Added behaviors by address
......@@ -8,13 +8,12 @@ import InfoRow from "../components/InfoRow";
import {BehaviorReceipt} from "../EthersProjectFork";
type BehaviorItemProps = {
bx: BehaviorReceipt;
bx: ProcessedBehavior | BehaviorReceipt;
selectedAddress?: string;
};
const BehaviorItem: React.FC<BehaviorItemProps> = ({
bx,
selectedAddress,
}) => {
return (
......@@ -27,7 +26,7 @@ const BehaviorItem: React.FC<BehaviorItemProps> = ({
<TimestampAge timestamp={Number(bx.timestamp)} />
<span className="col-span-2 flex items-baseline justify-between space-x-2 pr-2">
<InfoRow title="">
<DecoratedAddressLink address={bx.from} />
bx.from && <DecoratedAddressLink address={bx.from!} />
</InfoRow>
</span>
<span>{Number(bx.quantity)}</span>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment