Skip to content

Commit 6fbd43d

Browse files
committed
Make progress.chapter a string
1 parent 4357529 commit 6fbd43d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

stores/progress.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export const useProgressStore = defineStore("progressStore", () => {
22
const sources = useSourcesStore();
33

44
const title = ref("Unknown");
5-
const chapter = ref(1);
5+
const chapter = ref("1");
66
const page = ref(1);
77
const source = toRef(sources.currentSourceId);
88

@@ -18,8 +18,7 @@ export const useProgressStore = defineStore("progressStore", () => {
1818
}
1919

2020
function setChapter(value: any) {
21-
value = parseInt(value);
22-
chapter.value = value ? value : 1;
21+
chapter.value = value ? value : "1";
2322
}
2423

2524
function setPage(value: any) {

0 commit comments

Comments
 (0)