# fix\(web\): say why clearing a profile did nothing · pingdotgg/t3code

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

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

Visibility: public

Requested revision: 9b7c799c877c56df2f2806df2a9a2de07e9b6b03

Requested commit: 9b7c799c877c56df2f2806df2a9a2de07e9b6b03

Commit: 9b7c799c877c56df2f2806df2a9a2de07e9b6b03

Tree: 8574b4f884c1239dd90c62aad6d81b8e8cbef070

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
fix(web): say why clearing a profile did nothing

`clearProfileData` returned silently when no environment was connected, while
the menu item stayed enabled — a dead control with no explanation. It now
reports the same way `importInto` does for the same precondition.

Also switches `browserImport` to the subpath namespace import the rest of
`packages/contracts` uses.

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

```

## Parents

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

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