diff --git a/src/Explorer/SplashScreen/SplashScreen.tsx b/src/Explorer/SplashScreen/SplashScreen.tsx index 687a938a8..0253ad871 100644 --- a/src/Explorer/SplashScreen/SplashScreen.tsx +++ b/src/Explorer/SplashScreen/SplashScreen.tsx @@ -97,6 +97,12 @@ export class SplashScreen extends React.Component { () => this.setState({}), (state) => state.showResetPasswordBubble ), + }, + { + dispose: useDatabases.subscribe( + () => this.setState({}), + (state) => state.sampleDataResourceTokenCollection + ), } ); } @@ -107,7 +113,11 @@ export class SplashScreen extends React.Component { }; private getSplashScreenButtons = (): JSX.Element => { - if (userContext.features.enableCopilot && userContext.apiType === "SQL") { + if ( + useDatabases.getState().sampleDataResourceTokenCollection && + userContext.features.enableCopilot && + userContext.apiType === "SQL" + ) { return (