Skip to content

Commit f34eaf3

Browse files
committed
fix: only switch modes to webapp when we are making a webapp
1 parent cd2e60a commit f34eaf3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/activate/registerPearListener.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const registerPearListener = async (provider: ClineProvider) => {
5252
await new Promise((resolve) => setTimeout(resolve, 3000))
5353

5454
// * This does actually work but the UI update does not happen. This method calls this.postStateToWebview() so not sure what is going on - James
55-
if(msg.newProjectType !== "NONE") {
55+
if(msg.newProjectType === "WEBAPP") {
5656
// Only switch to the creator manager if we're creating a new project
5757
// TODO: later when we need to make a different type of project, we need to change this
5858
await provider.handleModeSwitch(PEARAI_CREATOR_MODE_WEBAPP_MANAGER_SLUG);

0 commit comments

Comments
 (0)