Skip to content

Commit 32339ba

Browse files
committed
fix cjs/esm imports
1 parent 605e04f commit 32339ba

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

frontend/app/modals/modalsrenderer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { atoms, globalPrimaryTabStartup, globalStore } from "@/store/global";
88
import { modalsModel } from "@/store/modalmodel";
99
import * as jotai from "jotai";
1010
import { useEffect } from "react";
11-
import semver from "semver";
11+
import * as semver from "semver";
1212
import { getModalComponent } from "./modalregistry";
1313

1414
const ModalsRenderer = () => {

frontend/app/onboarding/onboarding-upgrade.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ import { atoms, globalStore } from "@/app/store/global";
55
import { modalsModel } from "@/app/store/modalmodel";
66
import { useAtomValue } from "jotai";
77
import { useEffect, useRef } from "react";
8-
import semver from "semver";
8+
import * as semver from "semver";
99
import { UpgradeOnboardingModal_v0_12_0 } from "./onboarding-upgrade-v0120";
1010
import { UpgradeOnboardingModal_v0_12_1 } from "./onboarding-upgrade-v0121";
1111

1212
const UpgradeOnboardingModal = () => {
1313
const clientData = useAtomValue(atoms.client);
1414
const initialVersionRef = useRef<string | null>(null);
15-
15+
1616
if (initialVersionRef.current == null) {
1717
initialVersionRef.current = clientData.meta?.["onboarding:lastversion"] ?? "v0.0.0";
1818
}
19-
19+
2020
const lastVersion = initialVersionRef.current;
2121

2222
useEffect(() => {

0 commit comments

Comments
 (0)