Skip to content

Commit

Permalink
Merge pull request #40 from georgetown-cset/25-restrict-displayed-sto…
Browse files Browse the repository at this point in the history
…ck-tickers

Display filtered stock tickers in title
  • Loading branch information
jmelot authored Aug 15, 2023
2 parents 97a6db4 + eb5b541 commit ee2bae9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions web/gui-v2/src/components/DetailView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ const DetailView = ({
title={
<>
{companyData.name}
{companyData.market_list &&
<> <small className="stock-ticker">({companyData.market_list})</small></>
{companyData.market_filt && companyData.market_filt.length > 0 &&
<> <small className="stock-ticker">({companyData.market_filt.map(ticker => ticker.market_key).join(', ')})</small></>
}
</>
}
Expand Down
3 changes: 2 additions & 1 deletion web/gui-v2/src/components/DetailViewIntro.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ const DetailViewIntro = ({
{ title: "Country", data: data.country },
{ title: "Region", data: data.continent },
{ title: "Stage", data: data.stage },
{ title: "Groupings", data: "S&P 500" },
// { title: "Groupings", data: "S&P 500" },
{ title: "Stock tickers", data: data.market_list },
];

return (
Expand Down

0 comments on commit ee2bae9

Please sign in to comment.