Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
LuizAsFight committed Nov 18, 2024
1 parent 4c7f9ed commit 4e15b12
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
17 changes: 0 additions & 17 deletions packages/app/src/systems/Asset/components/AssetItem/AssetItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,22 +74,6 @@ export const AssetItem: AssetItemComponent = ({

const { assetId, name, symbol, icon, decimals, isCustom } = asset;

function getLeftEl() {
if (assetId) {
return (
<Copyable
value={assetId}
tooltipMessage="Copy asset address"
css={styles.assetIdCopy}
iconProps={{
icon: Icon.is('Copy'),
'aria-label': 'Copy asset address',
}}
/>
);
}
}

function getRightEl() {
if (showActions) {
return (
Expand Down Expand Up @@ -213,7 +197,6 @@ export const AssetItem: AssetItemComponent = ({
{symbol ? (
<>
<Text css={styles.assetSymbol}>{symbol}</Text>
{getLeftEl()}
</>
) : (
<Copyable value={assetId || ''} css={styles.unknownAssetId}>
Expand Down
5 changes: 1 addition & 4 deletions packages/app/src/systems/Send/hooks/useSend.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,7 @@ const schemaFactory = (provider?: Provider) =>
save: false,
});

if (
assetCached &&
!AssetsCache.getInstance().assetIsValid(assetCached)
) {
if (assetCached) {
return ctx.createError({
message: `You can't send to Asset address`,
});
Expand Down

0 comments on commit 4e15b12

Please sign in to comment.