Skip to content

Commit d8c85d6

Browse files
author
Rich Harris
committed
oops
1 parent 4d3b1c1 commit d8c85d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/tutorial/[slug]/filetree/Filetree.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
add: async (name, type) => {
3232
const expected = $solution[name];
3333
34-
if (type !== expected.type) {
34+
if (expected && type !== expected.type) {
3535
modal_text = `${name.slice(exercise.scope.prefix.length)} should be a ${expected.type}, not a ${type}!`;
3636
return;
3737
}

0 commit comments

Comments
 (0)