Skip to content

Commit

Permalink
Do nothing when no new input
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrySky committed Feb 10, 2022
1 parent 9926766 commit 15746ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/ContextMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export function addContextMenuCommands(

// Prompt the user to enter new value
let theResponse = window.prompt('Enter New Value (Without Quotes):', oldValue);
if(theResponse == null || theResponse == ""){
if(theResponse == null || theResponse == "" || theResponse == oldValue){
// When Cancel is clicked or no input provided, just return
return
}
Expand Down

0 comments on commit 15746ca

Please sign in to comment.