Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

199
Views
display 2 different arrays in a material ui react card

I am trying to get 2 separate arrays to be able to be displayed, preferably on a single card.

Here is my current code attempting to get them on 2 separate cards that will be next to each other, but the second array.map will show

Uncaught TypeError: segmentData.map(...) is not a function

Ideally I would like to combine the info from both arrays on a single card.

return (
    (segmentData.map((segment) => (
    <Card className={classes.root}>
      <CardActionArea>
        <CardContent>
          <Typography gutterBottom variant="h5" component="h2">
            {segment.flightNumber}
          </Typography>
          <Typography variant="body2" color="textSecondary" component="p">
            This CardContent is wrapped in a CardActionsArea, so this text and
            the above header are wrapped in a ButtonBase, which means they
            behave like a Button.
          </Typography>
        </CardContent>
      </CardActionArea>
    </Card>

    )))

    (pricedItineraryData.map((priced) => (
      <Card className={classes.root}>
        <CardActionArea>
          <CardContent>
            <Typography gutterBottom variant="h5" component="h2">
              {priced.totalFare}
            </Typography>
            <Typography variant="body2" color="textSecondary" component="p">
              This CardContent is wrapped in a CardActionsArea, so this text and
              the above header are wrapped in a ButtonBase, which means they
              behave like a Button.
            </Typography>
          </CardContent>
        </CardActionArea>
      </Card>
      )))
  );
};
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!