Skip to content

Commit

Permalink
Merge pull request ChatGPTNextWeb#2905 from H0llyW00dzZ/ref#2895
Browse files Browse the repository at this point in the history
  • Loading branch information
Yidadaa authored Sep 26, 2023
2 parents 23eb773 + 70b0580 commit 9835206
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/components/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,13 @@ export function SideBar(props: { className?: string }) {
icon={<MaskIcon />}
text={shouldNarrow ? undefined : Locale.Mask.Name}
className={styles["sidebar-bar-button"]}
onClick={() => navigate(Path.NewChat, { state: { fromHome: true } })}
onClick={() => {
if (config.dontShowMaskSplashScreen !== true) {
navigate(Path.NewChat, { state: { fromHome: true } });
} else {
navigate(Path.Masks, { state: { fromHome: true } });
}
}}
shadow
/>
<IconButton
Expand Down

0 comments on commit 9835206

Please sign in to comment.