Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
fix: add missing check when checking for cert-subnet (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiendan authored Sep 20, 2023
1 parent 486b9a3 commit 22912b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hooks/useSubnetGetCertificateById.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ export default function useSubnetGetCertificateById({
if (data) {
if (
!data?.certificate ||
data.certificate.sourceSubnetId !== selectedSubnet?.id
(data.certificate.sourceSubnetId !== selectedSubnet?.id &&
selectedSubnet)
) {
setErrors((e) => [
...e,
Expand Down

0 comments on commit 22912b3

Please sign in to comment.