Skip to content

Commit

Permalink
fix(grid): update check with spotify v1.2.26 & update modal (#670)
Browse files Browse the repository at this point in the history
  • Loading branch information
SunsetTechuila authored Dec 9, 2023
1 parent fa38105 commit 3c2a417
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ class Grid extends React.Component<
});

try {
this.setState({ newUpdate: semver.gt(this.state.version, MARKETPLACE_VERSION) });
this.setState({ newUpdate: semver.gt(result.name, MARKETPLACE_VERSION) });
} catch (err) {
console.error(err);
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Modals/Update/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ async function fetchLatestReleaseInfo(): Promise<{
? {
version: tag_name.replace("v", ""),
changelog: await getMarkdownHTML(
body.match(/## What's Changed([\s\S]*?)\r\n\r/)[1],
body.match(/## What's Changed([\s\S]*?)(\r\n\r|\n\n##)/)[1],
"spicetify",
"spicetify-marketplace",
),
Expand Down

0 comments on commit 3c2a417

Please sign in to comment.