Skip to content

Commit

Permalink
tiny refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
jgowdyelastic committed May 28, 2021
1 parent 7908c10 commit 0dbb1f4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ class TutorialDirectoryUi extends React.Component {

renderTabContent = () => {
const tab = this.tabs.find(({ id }) => id === this.state.selectedTabId);
if (tab !== undefined && tab.content !== undefined) {
if (tab?.content !== undefined) {
return tab.content;
}

Expand Down

0 comments on commit 0dbb1f4

Please sign in to comment.