Skip to content

Commit

Permalink
only show latest changes if there are changes to show
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot committed Dec 18, 2024
1 parent 10df5bc commit a32dac4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/changelog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export function ChangelogModal({

let newChangesButton = null;

if (hasNewBuild) {
if (latestChanges?.length) {
newChangesButton = <button onClick={onClick}>See what's new!</button>;
}

Expand Down

0 comments on commit a32dac4

Please sign in to comment.