Skip to content

Commit

Permalink
Also display tweet box if no message selected
Browse files Browse the repository at this point in the history
  • Loading branch information
tijszwinkels committed Nov 25, 2024
1 parent 2d78d3a commit 409dec9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ function App() {
<div className="filter-container">
<Filter value={filterTerm} onChange={handleFilterChange} />
</div>
{selectedMessage && <LastTweet messages={[selectedMessage]} marbleSelectTimeout={marbleSelectTimeout} />}
<LastTweet messages={[selectedMessage]} marbleSelectTimeout={marbleSelectTimeout} />
<div className="visualization-row">
<div className="marbles-container">
<MarblesDisplay
Expand Down
2 changes: 0 additions & 2 deletions src/components/LastTweet.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const LastTweet = ({ messages, marbleSelectTimeout }) => {
if (!messages || !messages[0]) {
return (
<div className="last-tweet">
<div>No tweet selected</div>
</div>
);
}
Expand All @@ -18,7 +17,6 @@ const LastTweet = ({ messages, marbleSelectTimeout }) => {
if (!text || !author || !postId) {
return (
<div className="last-tweet">
<div>Invalid or empty tweet</div>
</div>
);
}
Expand Down

0 comments on commit 409dec9

Please sign in to comment.