Skip to content

Commit

Permalink
Fixes type error on activity tab
Browse files Browse the repository at this point in the history
  • Loading branch information
comountainclimber committed Jul 14, 2023
1 parent 29c6999 commit cdcab1b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/components/Blockchain/Transaction/Transaction.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,3 +230,10 @@ export default function Transaction(props: Props) {
</div>
)
}

// add a default prop of an empty object to prevent errors when tx is undefined
Transaction.defaultProps = {
tx: {
type: null,
},
}

0 comments on commit cdcab1b

Please sign in to comment.