Skip to content

Commit

Permalink
fix TodoModal.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Valeraom committed Oct 11, 2024
1 parent e63f14f commit ef3682b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ export const App: React.FC = () => {
const [filteredTodos, setFilteredTodos] = useState<Todo[]>(todos);

const [searchQuery, setSearchQuery] = useState('');
const [completionQuery, setCompletionQuery] = useState<CompletionQuery>(CompletionQuery.All);
const [completionQuery, setCompletionQuery] = useState<CompletionQuery>(
CompletionQuery.All,
);

const [selectedTodoId, setSelectedTodoId] = useState<number>(0);

Expand Down
2 changes: 1 addition & 1 deletion src/components/TodoModal/TodoModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const TodoModal: React.FC<Props> = ({ todo, onSelect }) => {

{' by '}

<a href="mailto:[email protected]">{user.name}</a>
<a href={`mailto:${user.email}`}>{user.name}</a>
</p>
</div>
</div>
Expand Down

0 comments on commit ef3682b

Please sign in to comment.