Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,15 @@ const AddKey = (props: Props) => {
}

const closeAddKeyPanel = (isCancelled?: boolean) => {
onAddKeyPanel(false, stringToBuffer(keyName))
// meaning that the user closed the "Add Key" panel when clicked on the cancel button
if (isCancelled) {
onAddKeyPanel(false)
onClosePanel()
closeKeyTelemetry()
}
// meaning that the user closed the "Add Key" panel when added a key
else {
onAddKeyPanel(false, stringToBuffer(keyName))
}
}

Expand Down
Loading