Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Bug fix. If there is no currentNetwork then links will not work #616

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/views/Profile/FeedTile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export const FeedTileInternal = (props) => {
const isMain = currentNetwork && currentNetwork.toLowerCase() === 'main';
let txURL;

if (isMain) {
if (isMain || typeof currentNetwork === 'undefined') {
txURL = `https://etherscan.io/tx/${item.hash}`;
} else {
txURL = `https://${currentNetwork}.etherscan.io/tx/${item.hash}`;
Expand Down Expand Up @@ -235,7 +235,7 @@ export const FeedTileToken = (props) => {
const isMain = currentNetwork && currentNetwork.toLowerCase() === 'main';
let txURL;

if (isMain) {
if (isMain || typeof currentNetwork === 'undefined') {
txURL = `https://etherscan.io/tx/${item.hash}`;
} else {
txURL = `https://${currentNetwork}.etherscan.io/tx/${item.hash}`;
Expand Down Expand Up @@ -340,7 +340,7 @@ export const FeedTileTXS = (props) => {
const isMain = currentNetwork && currentNetwork.toLowerCase() === 'main';
let txURL;

if (isMain) {
if (isMain || typeof currentNetwork === 'undefined') {
txURL = `https://etherscan.io/tx/${item.hash}`;
} else {
txURL = `https://${currentNetwork}.etherscan.io/tx/${item.hash}`;
Expand Down