default to true for identity file question

This commit is contained in:
Siddharth Singh 2024-09-30 20:08:15 +05:30
parent 4c414beb36
commit 328b1c9049
No known key found for this signature in database

View file

@ -35,7 +35,10 @@ const resolveIdentityFile = async () => {
export const defaultIdentityFile = async (supplied?: string) => {
const cached = localStorage.getItem('identity-file-path');
if (cached && cached !== supplied && await question('confirm', `Found identity file ${cached}. Use it?`)) {
if (
cached && cached !== supplied &&
await question('confirm', `Found previously-used identity file ${cached}. Use it?`, true)
) {
return cached;
}