Skip to content

Commit

Permalink
Merge pull request #828 from synnaxlabs/sy-1179-fix-update-available-…
Browse files Browse the repository at this point in the history
…button-not-appearing

SY-1179 fix update available button not appearing
  • Loading branch information
Lham42 committed Sep 16, 2024
2 parents ec53de0 + 20a2a83 commit 7746fae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion console/src/version/Updater.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// included in the file licenses/APL.txt.

import { Button, Status, useAsyncEffect } from "@synnaxlabs/pluto";
import { TimeSpan } from "@synnaxlabs/x";
import { id, TimeSpan } from "@synnaxlabs/x";
import { check } from "@tauri-apps/plugin-updater";
import { useState } from "react";

Expand All @@ -26,6 +26,7 @@ export const useCheckForUpdates = (): boolean => {
if (update?.available !== true || available) return;
setAvailable(true);
addStatus({
key: `versionUpdate-${id.id()}`,
variant: "info",
message: `Update available`,
});
Expand Down

0 comments on commit 7746fae

Please sign in to comment.