Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Jan 17, 2025
1 parent 118bee6 commit 5553864
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ export default ( { siteId } ) => {
const tasks = response.secondary.find( item => Array.isArray( item ) );
const task = tasks[ index ];

const TaskComponent = taskMap[ task ] ?? <p>To do: { task }</p>;
const TaskComponent = taskMap[ task ];

return (
<>
<TaskComponent />
{ TaskComponent ? <TaskComponent /> : <p>To do: { task }</p> }
<div style={ { display: 'flex', gap: '5px' } }>
<button className="button" onClick={ () => setIndex( index - 1 ) } disabled={ index === 0 }>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export default () => {
return <div>Domain Upsell</div>;
return <p>Domain Upsell Component</p>;
};

0 comments on commit 5553864

Please sign in to comment.