[MM-44071] Fixed an issue where the first certificate could not be selected (#2162)

This commit is contained in:
Devin Binnie
2022-06-22 11:04:38 -04:00
committed by GitHub
parent 79d64e3ddf
commit 055c699c70

View File

@@ -95,7 +95,7 @@ export default class SelectCertificateModal extends React.PureComponent<Props, S
}
getSelectedCert = () => {
if (this.state.list && this.state.selectedIndex) {
if (this.state.list && this.state.selectedIndex !== undefined) {
return this.state.list[this.state.selectedIndex];
}
return undefined;