Skip to content

Commit a53b2fc

Browse files
committed
fix: adjust name used in invalid file error
1 parent f3097f6 commit a53b2fc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apps/playground/src/components/Editor/EditorPane.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,10 @@ export const EditorPane = React.forwardRef<EditorPaneRef, EditorPaneProps>(funct
122122
if (!fileType) {
123123
return (
124124
<EditorPanePlaceholder>
125-
{t({ en: `Error: Invalid file type "${fileType}"`, fr: `Erreur : Type de fichier invalide "${fileType}"` })}
125+
{t({
126+
en: `Error: Invalid file type for "${defaultFile.name}"`,
127+
fr: `Erreur : Type de fichier invalide pour "${defaultFile.name}"`
128+
})}
126129
</EditorPanePlaceholder>
127130
);
128131
} else if (fileType === 'asset') {

0 commit comments

Comments
 (0)