Skip to content

Commit 84e77f9

Browse files
committed
fix: v-model type errors
1 parent e96eb47 commit 84e77f9

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

webui/src/components/AppBar.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<v-btn
2727
color="primary"
2828
variant="tonal"
29-
:icon="store.showMachineName && xs"
29+
:icon="!!store.showMachineName && xs"
3030
class="mr-3"
3131
>
3232
<template v-if="!store.showMachineName || !xs">

webui/src/components/Participation.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ const keys = ref<Participation[]>();
266266
const showGenerate = ref(false);
267267
const form = ref();
268268
const addr = ref<string>();
269-
const gen = ref<{ first?: bigint; last?: bigint }>({});
269+
const gen = ref<{ first?: bigint | string; last?: bigint | string }>({});
270270
const lastRound = ref<bigint>();
271271
const acctInfos = ref<modelsv2.Account[]>([]);
272272

webui/src/stores/app.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,12 @@ export const useAppStore = defineStore("app", {
1919
downloading: false,
2020
stoppingReti: false,
2121
goalVersion: undefined as GoalVersion | undefined,
22-
showNetworks: localStorage.getItem("showNetworks") === "true",
23-
showMachineName: localStorage.getItem("showMachineName") === "true",
22+
showNetworks: (localStorage.getItem("showNetworks") === "true") as
23+
| boolean
24+
| null,
25+
showMachineName: (localStorage.getItem("showMachineName") === "true") as
26+
| boolean
27+
| null,
2428
machineName: undefined as string | undefined,
2529
}),
2630
actions: {

0 commit comments

Comments
 (0)