Repository: 4ian/GDevelop
File: newIDE/app/src/AssetStore/NewObjectDialog.js (JavaScript)

Code before:
  const showProjectNeedToBeSaved = useProjectNeedToBeSavedAlertDialog(
    resourceManagementProps.canInstallPrivateAsset
  );

  return async (
    assetShortHeader: AssetShortHeader
  ): Promise<InstallAssetOutput | null> => {
    try {
      if (await showProjectNeedToBeSaved(assetShortHeader)) {
        return null;
      }
      const assets = await fetchAssets([assetShortHeader]);
      const asset = assets[0];
      const requiredExtensionInstallation = await checkRequiredExtensionsUpdateForAssets(
        {
          assets,
          project,
        }
      );
      if (
        requiredExtensionInstallation.incompatibleWithIdeExtensionShortHeaders
          .length > 0
      ) {
        showAlert({
          title: t`Could not install the asset`,
          message: t`Please upgrade the editor to the last version.`,
        });
        return null;
      }
      const shouldUpdateExtension =
        requiredExtensionInstallation.outOfDateExtensionShortHeaders.length >
          0 &&
        (await showExtensionUpdateConfirmation(
          requiredExtensionInstallation.outOfDateExtensionShortHeaders
        ));
      await installRequiredExtensions({
        requiredExtensionInstallation,
        shouldUpdateExtension,
        eventsFunctionsExtensionsState,
        project,
      });
      const isPrivate = isPrivateAsset(assetShortHeader);
      const installOutput = isPrivate
        ? await installPrivateAsset({
            asset,
            project,
            objectsContainer,
            targetObjectFolderOrObject:
              targetObjectFolderOrObjectWithContext &&
              !targetObjectFolderOrObjectWithContext.global
                ? targetObjectFolderOrObjectWithContext.objectFolderOrObject

Review comment (suggestion):
```suggestion
          message: t`Please upgrade the editor to the latest version.`,
```

Code after:
  const showProjectNeedToBeSaved = useProjectNeedToBeSavedAlertDialog(
    resourceManagementProps.canInstallPrivateAsset
  );

  return async (
    assetShortHeader: AssetShortHeader
  ): Promise<InstallAssetOutput | null> => {
    try {
      if (await showProjectNeedToBeSaved(assetShortHeader)) {
        return null;
      }
      const assets = await fetchAssets([assetShortHeader]);
      const asset = assets[0];
      const requiredExtensionInstallation = await checkRequiredExtensionsUpdateForAssets(
        {
          assets,
          project,
        }
      );
      if (
        requiredExtensionInstallation.incompatibleWithIdeExtensionShortHeaders
          .length > 0
      ) {
        showAlert({
          title: t`Could not install the asset`,
          message: t`Please upgrade the editor to the latest version.`,
        });
        return null;
      }
      const shouldUpdateExtension =
        requiredExtensionInstallation.outOfDateExtensionShortHeaders.length >
          0 &&
        (await showExtensionUpdateConfirmation(
          requiredExtensionInstallation.outOfDateExtensionShortHeaders
        ));
      await installRequiredExtensions({
        requiredExtensionInstallation,
        shouldUpdateExtension,
        eventsFunctionsExtensionsState,
        project,
      });
      const isPrivate = isPrivateAsset(assetShortHeader);
      const installOutput = isPrivate
        ? await installPrivateAsset({
            asset,
            project,
            objectsContainer,
            targetObjectFolderOrObject:
              targetObjectFolderOrObjectWithContext &&
              !targetObjectFolderOrObjectWithContext.global
                ? targetObjectFolderOrObjectWithContext.objectFolderOrObject