Skip to content

Commit

Permalink
changed "substr" to "substring" in two places
Browse files Browse the repository at this point in the history
  • Loading branch information
phershbe authored Jun 7, 2022
1 parent 4855334 commit df5ce95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/common/LinkTx.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default function LinkTx({ txId, shorten = true }) {
const url = `${STACKS_EXPLORER}/txid/${txId}`;
return (
<a href={`${url}${CHAIN_SUFFIX}`} target="_blank" rel="noreferrer">
{shorten ? txId.substr(0, 5) + '...' + txId.substr(txId.length - 5) : txId}
{shorten ? txId.substring(0, 5) + '...' + txId.substring(txId.length - 5) : txId}
<i className="bi bi-box-arrow-up-right ms-1" />
</a>
);
Expand Down

0 comments on commit df5ce95

Please sign in to comment.