# fix\(web\): don't leave an empty profile behind when import can't start · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/7b885a2dd301cc67a06a611be2c468e71a909c24)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: 7b885a2dd301cc67a06a611be2c468e71a909c24

Requested commit: 7b885a2dd301cc67a06a611be2c468e71a909c24

Commit: 7b885a2dd301cc67a06a611be2c468e71a909c24

Tree: 590a55e54d8468699264451eaf6679f03613293d

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
fix(web): don't leave an empty profile behind when import can't start

`importInto` created the target profile before `runImport` checked for an
environment and a bridge, so choosing an import target before the environment
resolved left a new empty profile named after the source browser and produced
no toast at all. The check now happens first and says what went wrong.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

```

## Parents

- [2377fdbcf26970d3c584ae09929708280cbc5092](https://git.cafe/pingdotgg/t3code/commit/2377fdbcf26970d3c584ae09929708280cbc5092?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/7b885a2dd301cc67a06a611be2c468e71a909c24?format=markdown)
