Skip to content

Commit

Permalink
Correcting casing on Govuk.
Browse files Browse the repository at this point in the history
  • Loading branch information
nataliecarey committed Sep 12, 2023
1 parent 299cf03 commit 7ecc397
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 @@ -216,10 +216,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 pluginDetails.getInstalledPackages()).map((pkg) => pkg.packageName)
if (installedPlugins.includes(govUkFrontendPackageName) && !installedPlugins.includes(commonTemplatesPackageName)) {
if (installedPlugins.includes(govukFrontendPackageName) && !installedPlugins.includes(commonTemplatesPackageName)) {
const plugin = await getLatestPluginDetailsFromNpm(commonTemplatesPackageName)
commonTemplatesDetails = {
pluginDisplayName: plugin?.name,
Expand Down

0 comments on commit 7ecc397

Please sign in to comment.