Skip to content

Commit

Permalink
fix: ask preset name only if confirm to save
Browse files Browse the repository at this point in the history
  • Loading branch information
ipetinate committed May 17, 2024
1 parent c661613 commit 8fe47c4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/actions/guided.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ export async function guidedAction(resourceName) {
message: 'Do you want to save the answers as a preset to use later?'
})

/**
* Save answers as new preset
*
* @type {boolean}
*/
const presetName = await presetNamePrompt()

if (savePreset) {
/**
* Save answers as new preset
*
* @type {boolean}
*/
const presetName = await presetNamePrompt()

const { success, path } = saveAnswersAsPreset(presetName, answers)

if (success) {
Expand Down

0 comments on commit 8fe47c4

Please sign in to comment.