Skip to content

Commit

Permalink
Prefer lowercase govUkgovuk
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrotherham committed Sep 14, 2023
1 parent 9159606 commit 18fc10b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/manage-prototype-handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,10 @@ async function getTemplatesHandler (req, res) {
const availableTemplates = getPluginTemplates()

const commonTemplatesPackageName = '@govuk-prototype-kit/common-templates'
const govUkFrontendPackageName = 'govuk-frontend'
const govukFrontendPackageName = 'govuk-frontend'
let commonTemplatesDetails
const installedPlugins = (await getInstalledPackages()).map((pkg) => pkg.packageName)
if (installedPlugins.includes(govUkFrontendPackageName) && !installedPlugins.includes(commonTemplatesPackageName)) {
if (installedPlugins.includes(govukFrontendPackageName) && !installedPlugins.includes(commonTemplatesPackageName)) {
commonTemplatesDetails = {
pluginDisplayName: plugins.preparePackageNameForDisplay(commonTemplatesPackageName),
installLink: `${contextPath}/plugins/install?package=${encodeURIComponent(commonTemplatesPackageName)}&returnTo=templates`
Expand Down

0 comments on commit 18fc10b

Please sign in to comment.