title: Cannot read properties of undefined (reading 'slice')
body: <p>I can't figure out the problem with the code as I have even matched it with the source code provided by the git user and it is same, but still showing error
  <strong>So below is the error</strong>:-
  <a href="https://i.stack.imgur.com/RrHKD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RrHKD.png" alt="error" /></a></p>
  <p><strong>Below is the code for shortenAddress component:-</strong></p>
  <pre><code> export const shortenAddress = (address) =&gt; `${address.slice(0, 5)}...${address.slice(address.length - 4)}`;
  </code></pre>
  <p><strong>Below is the code of the Welcome component</strong></p>
  <pre><code>        &lt;p className=&quot;text-white font-light te-xt-sm&quot;&gt;{shortenAddress(currentAccount) }&lt;/p&gt;
  </code></pre>
  <p>Please,can someone tell the answer to this question of mine...</p>