Skip to content

Commit 327eed6

Browse files
authored
fix: correct the order of calling reactive blocks (sveltejs#295)
1 parent 306b282 commit 327eed6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/tutorial/[slug]/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@
3232
let previous_files = [];
3333
3434
$: mobile = w < 800; // for the things we can't do with media queries
35-
$: completed = is_completed($files, data.exercise.b);
3635
$: files.set(Object.values(data.exercise.a));
3736
$: solution.set(data.exercise.b);
3837
$: selected_name.set(data.exercise.focus);
38+
$: completed = is_completed($files, data.exercise.b);
3939
4040
beforeNavigate(() => {
4141
previous_files = $files;

0 commit comments

Comments
 (0)