Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Gudahtt committed Aug 2, 2024
1 parent e4093a9 commit ec6b27f
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ui/components/app/assets/nfts/nft-details/nft-details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ export default function NftDetails({ nft }: { nft: Nft }) {
alt={image ? nftImageAlt : ''}
name={name}
tokenId={tokenId}
networkName={currentChain.nickname}
networkName={currentChain.nickname ?? ''}
networkSrc={currentChain.rpcPrefs?.imageUrl}
isIpfsURL={isIpfsURL}
onClick={handleImageClick}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default function NftFullImage() {
alt={image ? nftImageAlt : ''}
name={name}
tokenId={tokenId}
networkName={currentChain.nickname}
networkName={currentChain.nickname ?? ''}
networkSrc={currentChain.rpcPrefs?.imageUrl}
isIpfsURL={isIpfsURL}
badgeWrapperClassname="badge-wrapper"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export function AssetPicker({
badge={
<AvatarNetwork
size={AvatarNetworkSize.Xs}
name={currentNetwork?.nickname}
name={currentNetwork?.nickname ?? ''}
src={currentNetwork?.rpcPrefs?.imageUrl}
backgroundColor={testNetworkBackgroundColor}
borderColor={
Expand Down
2 changes: 1 addition & 1 deletion ui/components/multichain/nft-item/nft-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ NftItem.propTypes = {
/**
* Image that represents the network
*/
networkSrc: PropTypes.string.isRequired,
networkSrc: PropTypes.string,
/**
* Token ID of the NFT
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const SendPageNetworkPicker = () => {
return (
<SendPageRow>
<PickerNetwork
label={currentNetwork?.nickname}
label={currentNetwork?.nickname ?? ''}
src={currentNetwork?.rpcPrefs?.imageUrl}
onClick={() => dispatch(toggleNetworkMenu())}
data-testid="send-page-network-picker"
Expand Down
2 changes: 1 addition & 1 deletion ui/selectors/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -1833,7 +1833,7 @@ export const getCurrentNetwork = createDeepEqualSelector(
* id?: string;
* nickname?: string;
* providerType?: string;
* rpcPrefs?: Record<string, unknown>;
* rpcPrefs?: { blockExplorerUrl?: string; imageUrl?: string; };
* rpcUrl: string;
* ticker: string;
* }} networkConfiguration - Configuration for the current network.
Expand Down

0 comments on commit ec6b27f

Please sign in to comment.