Commit ae400d3a authored by Igor Stuev's avatar Igor Stuev Committed by GitHub

Merge pull request #660 from blockscout/fixes3

fixes3
parents d2a2d7c1 93888428
...@@ -37,6 +37,7 @@ const Home = () => { ...@@ -37,6 +37,7 @@ const Home = () => {
alignItems="center" alignItems="center"
display={{ base: 'none', lg: 'flex' }} display={{ base: 'none', lg: 'flex' }}
columnGap={ 12 } columnGap={ 12 }
pl={ 4 }
> >
<ColorModeToggler trackBg="whiteAlpha.500"/> <ColorModeToggler trackBg="whiteAlpha.500"/>
<ProfileMenuDesktop/> <ProfileMenuDesktop/>
......
...@@ -37,8 +37,9 @@ type Props = { ...@@ -37,8 +37,9 @@ type Props = {
} }
const TxsTableItem = ({ tx, showBlockInfo, currentAddress, enableTimeIncrement }: Props) => { const TxsTableItem = ({ tx, showBlockInfo, currentAddress, enableTimeIncrement }: Props) => {
const dataTo = tx.to ? tx.to : tx.created_contract;
const isOut = Boolean(currentAddress && currentAddress === tx.from.hash); const isOut = Boolean(currentAddress && currentAddress === tx.from.hash);
const isIn = Boolean(currentAddress && currentAddress === tx.to?.hash); const isIn = Boolean(currentAddress && currentAddress === dataTo.hash);
const timeAgo = useTimeAgoIncrement(tx.timestamp, enableTimeIncrement); const timeAgo = useTimeAgoIncrement(tx.timestamp, enableTimeIncrement);
...@@ -49,8 +50,6 @@ const TxsTableItem = ({ tx, showBlockInfo, currentAddress, enableTimeIncrement } ...@@ -49,8 +50,6 @@ const TxsTableItem = ({ tx, showBlockInfo, currentAddress, enableTimeIncrement }
</Address> </Address>
); );
const dataTo = tx.to ? tx.to : tx.created_contract;
const addressTo = ( const addressTo = (
<Address> <Address>
<AddressIcon address={ dataTo }/> <AddressIcon address={ dataTo }/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment