Skip to content

Commit 68fe2ca

Browse files
committed
chore: dont check github version in dev
1 parent 560768e commit 68fe2ca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

frontend/src/ts/utils/version.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { z } from "zod";
22
import { getLatestReleaseFromGitHub } from "./json-data";
33
import { LocalStorageWithSchema } from "./local-storage-with-schema";
44
import { tryCatch } from "@monkeytype/util/trycatch";
5-
import { createErrorMessage } from "./misc";
5+
import { createErrorMessage, isDevEnvironment } from "./misc";
66
import { setVersion } from "../signals/core";
77

88
const memoryLS = new LocalStorageWithSchema({
@@ -19,6 +19,8 @@ function purgeCaches(): void {
1919
}
2020

2121
export async function fetchLatestVersion(): Promise<void> {
22+
if (isDevEnvironment()) return;
23+
2224
const { data: currentVersion, error } = await tryCatch(
2325
getLatestReleaseFromGitHub(),
2426
);

0 commit comments

Comments
 (0)