From df5ce95c184456bb69857a1828ed496b683ddb3e Mon Sep 17 00:00:00 2001 From: Philip Date: Tue, 7 Jun 2022 14:50:56 -0400 Subject: [PATCH] changed "substr" to "substring" in two places --- src/components/common/LinkTx.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/common/LinkTx.js b/src/components/common/LinkTx.js index c29ffd4..f8d2f2d 100644 --- a/src/components/common/LinkTx.js +++ b/src/components/common/LinkTx.js @@ -5,7 +5,7 @@ export default function LinkTx({ txId, shorten = true }) { const url = `${STACKS_EXPLORER}/txid/${txId}`; return ( - {shorten ? txId.substr(0, 5) + '...' + txId.substr(txId.length - 5) : txId} + {shorten ? txId.substring(0, 5) + '...' + txId.substring(txId.length - 5) : txId} );