Skip to content

Commit f231c47

Browse files
authored
Merge pull request #2764 from codecrafters-io/pk-branch-5
feat(submission-details): enhance no-changes message logic
2 parents f82755b + d735705 commit f231c47

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

app/components/course-admin/submissions-page/submission-details/diff-container.hbs

+7-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,13 @@
3333
{{/each}}
3434
{{else}}
3535
<div class="bg-gray-800 p-4 text-white font-mono text-xs leading-relaxed rounded mb-4">
36-
This submission doesn't have any changed files.
36+
{{#if @submission.hasChanges}}
37+
This submission has changed files, but none of them were
38+
{{@submission.repository.language.name}}
39+
files.
40+
{{else}}
41+
This submission doesn't have any changed files.
42+
{{/if}}
3743
</div>
3844
{{/if}}
3945
</div>

0 commit comments

Comments
 (0)