Update GeneralSettings.jsx to adjust error and loading conditions

This commit is contained in:
2026-04-17 10:23:40 +02:00
parent 5c00010b0a
commit 9849ba54ed

View File

@@ -746,13 +746,13 @@ export default function GeneralSettings({
{changelogError && (
<p className="setting-status error">{changelogError}</p>
)}
{!changelogError && isLoadingChangelog && (
{isLoadingChangelog && (
<p className="setting-status neutral">Loading changelog...</p>
)}
{!changelogError && !isLoadingChangelog && changelogEntries.length === 0 && (
{!isLoadingChangelog && !changelogError && changelogEntries.length === 0 && (
<p className="setting-description">No commits found.</p>
)}
{!changelogError && changelogEntries.length > 0 && (
{changelogEntries.length > 0 && (
<>
<ul className="changelog-list">
{changelogEntries.map((entry) => {