fix(chat): update artifact ID check for restored project setup

The artifact ID check was updated from 'imported-files' to 'restored-project-setup' to correctly identify the restored project setup action. This ensures the UI displays the appropriate message based on the artifact's state.
This commit is contained in:
KevIsDev 2025-04-28 14:29:06 +01:00
parent 42eaa2f5e1
commit cfbc215001

View File

@ -111,7 +111,7 @@ export const Artifact = memo(({ messageId }: ArtifactProps) => {
</div>
<div className="text-bolt-elements-textPrimary font-medium leading-5 text-sm">
{allActionFinished
? artifact.id === 'imported-files'
? artifact.id === 'restored-project-setup'
? 'Restore files from snapshot'
: 'Initial files created'
: 'Creating initial files'}