title: TypeError: Cannot read properties of undefined (reading 'map'). Error being thrown when I am trying to map over an array of cryptocurrencies
body: <p>I am making a page which displays all the cryptocurrencies in the format of a card but I am getting an error.</p>
  <pre><code>import { Card, Row, Col, Input } from 'antd'
  import React from 'react'
  import { Link } from 'react-router-dom'
  import { useGetCryptosQuery } from '../services/CryptoApi'
  import { useState } from 'react'
  import millify from 'millify'
  
  const Cryptocurrencies = () =&gt; {
      const {data : cryptoList, isFetching } = useGetCryptosQuery()
      const [cryptos,setCryptos] = useState(cryptoList?.data?.coins)
      
      
      console.log(cryptos)
      
      return (
          &lt;div&gt;
             &lt;Row gutter = {[32,32]} className = &quot;crypto-card-container&quot;&gt;
                  {cryptos.map((currency) =&gt; (
                          
                          &lt;Col xs = {24} sm = {12} lg = {6} className = &quot;crypto-card&quot; key = {currency.id}&gt;
                              &lt;Link to = {'/crypto/${currency.id}'}&gt;
                                  &lt;Card
                                  title = {'${currency.rank}. ${currency.name}'}
                                  extra = {&lt;img className = &quot;crypto-img&quot; src = {currency.iconUrl}/&gt;}
                                  hoverable
                                  &gt;
                                  &lt;p&gt;Price : {millify(currency.price)}&lt;/p&gt;
                                  &lt;p&gt;Market Cap : {millify(currency.marketCap)}&lt;/p&gt;
                                  &lt;p&gt;Daily Change : {millify(currency.change)}&lt;/p&gt;
                                  &lt;/Card&gt;
                              &lt;/Link&gt;
                          &lt;/Col&gt;
                  ))}
             &lt;/Row&gt;
          &lt;/div&gt;
      )
  }
  
  export default Cryptocurrencies
   
  </code></pre>
  <p>what is the error in my map function and the callback I have used?</p>