fix: channel uri not showing in wallet
This commit is contained in:
parent
ff8bb07214
commit
bb0bed7cef
1 changed files with 9 additions and 4 deletions
|
@ -45,10 +45,15 @@ class TransactionListItem extends React.PureComponent<Props> {
|
||||||
|
|
||||||
// Ensure the claim name exists and is valid
|
// Ensure the claim name exists and is valid
|
||||||
let uri;
|
let uri;
|
||||||
let streamName = name;
|
let claimName;
|
||||||
try {
|
try {
|
||||||
({ streamName } = parseURI(name));
|
if (name.startsWith('@')) {
|
||||||
uri = buildURI({ streamName, streamClaimId: claimId });
|
({ claimName } = parseURI(name));
|
||||||
|
uri = buildURI({ channelName: claimName, channelClaimId: claimId });
|
||||||
|
} else {
|
||||||
|
({ claimName } = parseURI(name));
|
||||||
|
uri = buildURI({ streamName: claimName, streamClaimId: claimId });
|
||||||
|
}
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
|
|
||||||
const dateFormat = {
|
const dateFormat = {
|
||||||
|
@ -74,7 +79,7 @@ class TransactionListItem extends React.PureComponent<Props> {
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{reward && <span>{reward.reward_title}</span>}
|
{reward && <span>{reward.reward_title}</span>}
|
||||||
{name && claimId && <Button button="link" navigate={uri} label={streamName} />}
|
{name && claimId && <Button button="link" navigate={uri} label={claimName} />}
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
|
|
Loading…
Reference in a new issue