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

Commit

Permalink
fix: update cert effect on cert page (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiendan authored Sep 20, 2023
1 parent fd9ca46 commit 486b9a3
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 @@ -57,12 +57,13 @@ export default function useSubnetGetCertificateById({
...e,
`Could not find a certificate with the provided id (${certificateId})`,
])
setCertificate(undefined)
} else {
setCertificate(data?.certificate)
}
}
},
[data?.certificate]
[data?.certificate, selectedSubnet]
)

return { certificate, error, loading }
Expand Down

0 comments on commit 486b9a3

Please sign in to comment.