From 5b365e642f2dbae7f064496c4d8901e0782ec55c Mon Sep 17 00:00:00 2001 From: sunghyunkang1111 <114709653+sunghyunkang1111@users.noreply.github.com> Date: Mon, 10 Oct 2022 18:53:54 -0500 Subject: [PATCH] show introductory video and password reset for first time try postgresql (#1338) (#1340) --- src/Explorer/SplashScreen/SplashScreen.tsx | 2 +- src/UserContext.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Explorer/SplashScreen/SplashScreen.tsx b/src/Explorer/SplashScreen/SplashScreen.tsx index 2dfab1d51..d6ac666d9 100644 --- a/src/Explorer/SplashScreen/SplashScreen.tsx +++ b/src/Explorer/SplashScreen/SplashScreen.tsx @@ -198,7 +198,7 @@ export class SplashScreen extends React.Component { text: "Create", onClick: () => { sendMessage({ - type: MessageTypes.OpenQuickstartBlade, + type: MessageTypes.OpenPostgreSQLPasswordReset, }); usePostgres.getState().setShowResetPasswordBubble(false); }, diff --git a/src/UserContext.ts b/src/UserContext.ts index 29548e3f9..6a1fbc508 100644 --- a/src/UserContext.ts +++ b/src/UserContext.ts @@ -113,7 +113,7 @@ function updateUserContext(newContext: Partial): void { usePostgres.getState().setShowPostgreTeachingBubble(true); localStorage.setItem(newContext.databaseAccount.id, "true"); } - if (userContext.isTryCosmosDBSubscription || isNewAccount) { + if (newContext.isTryCosmosDBSubscription || isNewAccount) { useCarousel.getState().setShouldOpen(true); usePostgres.getState().setShowResetPasswordBubble(true); localStorage.setItem(newContext.databaseAccount.id, "true");