Skip to content

Commit

Permalink
fix: 🐛 fix history not cleared
Browse files Browse the repository at this point in the history
fix object is modified
  • Loading branch information
vivaxy committed Oct 13, 2020
1 parent 5c95979 commit b7fb625
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export default async function prompt({
},
];

const answers: Messages = DEFAULT_MESSAGES;
const answers: Messages = { ...DEFAULT_MESSAGES };

for (const q of questions) {
let answer = {};
Expand Down

0 comments on commit b7fb625

Please sign in to comment.