fix: [code-289]: fix clone

This commit is contained in:
calvin 2023-05-04 09:42:02 -06:00
parent cc1f635ddd
commit 1beac5ff12

View File

@ -32,7 +32,7 @@ const CloneCredentialDialog = (props: CloneCredentialDialogProps) => {
const { showError } = useToaster()
const hash = generateAlphaNumericHash(6)
const tokenData = hooks?.useGenerateToken(hash, currentUser.uid, flag)
const tokenData = hooks?.useGenerateToken?.(hash, currentUser.uid, flag)
useEffect(() => {
if (tokenData) {
if (tokenData && tokenData?.status !== 400) {