Skip to content

Commit

Permalink
Merge pull request leoMirandaa#12 from sota-labs/fix/market-undefined…
Browse files Browse the repository at this point in the history
…-object

fix: fix undefined negRiskMarketID
  • Loading branch information
Sotatek-HungNguyen6 authored Aug 14, 2024
2 parents 072aac8 + 8b9a617 commit ff0530b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/views/event/EventListLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,9 @@ const EventListLayout: React.FC = () => {
Resolver
</div>
<div className='text-[16px] text-blue-700'>
{`${market?.negRiskMarketID.substr(0, 12)}...` ||
''}
{market?.negRiskMarketID
? `${market?.negRiskMarketID.substr(0, 12)}...`
: '...'}
</div>
</div>
</div>
Expand Down

0 comments on commit ff0530b

Please sign in to comment.