Skip to content

Commit

Permalink
Fix typo (#6337)
Browse files Browse the repository at this point in the history
Don't show in changelog
  • Loading branch information
AlexandreSi committed Feb 9, 2024
1 parent 54bd296 commit 25adb02
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions newIDE/app/src/MainFrame/UseExampleOrGameTemplateDialogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ const useExampleOrGameTemplateDialogs = ({

const closeExampleStoreDialog = React.useCallback(
({
deselectExampleAngGameTemplate,
deselectExampleAndGameTemplate,
}: {|
deselectExampleAngGameTemplate: boolean,
deselectExampleAndGameTemplate: boolean,
|}) => {
setExampleStoreDialogOpen(false);
if (deselectExampleAngGameTemplate) {
if (deselectExampleAndGameTemplate) {
setSelectedExampleShortHeader(null);
setSelectedPrivateGameTemplateListingData(null);
}
Expand Down Expand Up @@ -100,7 +100,7 @@ const useExampleOrGameTemplateDialogs = ({
<ExampleStoreDialog
open
onClose={() =>
closeExampleStoreDialog({ deselectExampleAngGameTemplate: true })
closeExampleStoreDialog({ deselectExampleAndGameTemplate: true })
}
isProjectOpening={isProjectOpening}
selectedExampleShortHeader={selectedExampleShortHeader}
Expand Down
4 changes: 2 additions & 2 deletions newIDE/app/src/MainFrame/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ const MainFrame = (props: Props) => {
currentProject: project,
currentFileMetadata: fileMetadata,
}));
closeExampleStoreDialog({ deselectExampleAngGameTemplate: false });
closeExampleStoreDialog({ deselectExampleAndGameTemplate: false });

// Load all the EventsFunctionsExtension when the game is loaded. If they are modified,
// their editor will take care of reloading them.
Expand Down Expand Up @@ -1157,7 +1157,7 @@ const MainFrame = (props: Props) => {
getStorageProviderOperations,
afterCreatingProject: async ({ project, editorTabs, oldProjectId }) => {
setNewProjectSetupDialogOpen(false);
closeExampleStoreDialog({ deselectExampleAngGameTemplate: true });
closeExampleStoreDialog({ deselectExampleAndGameTemplate: true });
findLeaderboardsToReplace(project, oldProjectId);
openSceneOrProjectManager({
currentProject: project,
Expand Down

0 comments on commit 25adb02

Please sign in to comment.