Skip to content

Commit

Permalink
Fix algorithm props
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandr-slobodian committed Jun 24, 2024
1 parent 46add22 commit 604e624
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import styles from "./styles/index.module.scss";

export interface ICertificateCreateByCustomData {
subject: CertificateSubjectProps;
algorithm?: CertificateAlgorithmProps;
algorithm: CertificateAlgorithmProps;
extendedKeyUsages: ICertificateExtendedKeyUsages[];
type: CertificateType;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ export function useCertificateCreateDialog(props: {
localCurrentProviderId.current as string,
{
subjectName: subject,
hashAlgorithm: algorithm?.hash as EHashAlgorithm,
signatureAlgorithm: algorithm?.signature as ESignatureAlgorithm,
hashAlgorithm: algorithm.hash,
signatureAlgorithm: algorithm?.signature,
}
);
} else if (type === "csr") {
Expand Down

0 comments on commit 604e624

Please sign in to comment.