Skip to content

Commit

Permalink
fixes after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
shanimal08 committed Dec 5, 2024
1 parent da33a79 commit b36da74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
SettingsGroupTitle,
SettingsGroupAction,
} from '../../components/SettingsGroup.styles';
import { invoke } from '@tauri-apps/api/tauri';
import { invoke } from '@tauri-apps/api/core';

export const ErrorTypography = styled(Typography)(({ theme }) => ({
color: theme.palette.error.main,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import tariIcon from './tari-icon.png';
import packageInfo from '../../../../../../package.json';
import { useTranslation } from 'react-i18next';
import { useUIStore } from '@app/store/useUIStore';
import { checkUpdate } from '@tauri-apps/api/updater';
import { check } from '@tauri-apps/plugin-updater';

const appVersion = packageInfo.version;
const versionString = `v${appVersion}`;
Expand Down Expand Up @@ -77,7 +77,8 @@ export const ReleaseNotes = () => {

useEffect(() => {
const checkForUpdates = async () => {
const { shouldUpdate } = await checkUpdate();
const update = await check();
const shouldUpdate = !!update?.available;
setNeedsUpgrade(shouldUpdate);
};

Expand Down

0 comments on commit b36da74

Please sign in to comment.