From ada840657b596f31487867116fb0682245acfe29 Mon Sep 17 00:00:00 2001 From: erezrokah Date: Wed, 10 Mar 2021 16:40:28 +0100 Subject: [PATCH] fix(sites-delete): use siteId instead of cwdSiteId for warning messages --- src/commands/sites/delete.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/sites/delete.js b/src/commands/sites/delete.js index ea310d60fb9..735a8e63999 100644 --- a/src/commands/sites/delete.js +++ b/src/commands/sites/delete.js @@ -42,7 +42,7 @@ class SitesDeleteCommand extends Command { /* Verify the user wants to delete the site */ if (noForce) { this.log(`${chalk.redBright('Warning')}: You are about to permanently delete "${chalk.bold(siteData.name)}"`) - this.log(` Verify this siteID "${cwdSiteId}" supplied is correct and proceed.`) + this.log(` Verify this siteID "${siteId}" supplied is correct and proceed.`) this.log(' To skip this prompt, pass a --force flag to the delete command') this.log() this.log(`${chalk.bold('Be careful here. There is no undo!')}`) @@ -66,7 +66,7 @@ class SitesDeleteCommand extends Command { this.log(`Supplied: "${siteId}"`) this.log(`Current Site: "${cwdSiteId}"`) this.log() - this.log(`Verify this siteID "${cwdSiteId}" supplied is correct and proceed.`) + this.log(`Verify this siteID "${siteId}" supplied is correct and proceed.`) this.log('To skip this prompt, pass a --force flag to the delete command') const { wantsToDelete } = await inquirer.prompt({ type: 'confirm',