Skip to content

Commit f8cd6c4

Browse files
committed
fixed Updater broken vars
1 parent faea0a0 commit f8cd6c4

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

src-next/components/Updater.tsx

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,24 @@ export default function Updater(): React.ReactElement {
1616
<p>Mia Version: {version}</p>
1717
<p>Tauri version: {tauriVersion}</p>
1818
</div>
19-
{nextUpdate?.manifest ? (
19+
{nextUpdate?.available ? (
2020
<div className={styles.updater}>
2121
<h4>Update Available</h4>
2222
<p>
23-
{DateFormatter.format(
24-
new Date(
25-
nextUpdate.manifest.date
26-
.split(" ")
27-
.slice(0, -1)
28-
.join(" ")
29-
)
30-
)}
23+
{nextUpdate.date
24+
? DateFormatter.format(
25+
new Date(
26+
nextUpdate.date
27+
.split(" ")
28+
.slice(0, -1)
29+
.join(" ")
30+
)
31+
)
32+
: "Date Unknown"}
3133
</p>
32-
<p>{nextUpdate.manifest.body}</p>
34+
<p>{nextUpdate.body}</p>
3335
<button onClick={update}>
34-
Update to {nextUpdate.manifest.version}
36+
Update to {nextUpdate.version}
3537
</button>
3638
</div>
3739
) : (

0 commit comments

Comments
 (0)