Skip to content

Commit

Permalink
fix: misc cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rohan-chaturvedi committed Dec 10, 2024
1 parent 0ee083a commit d7ab41b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions frontend/components/environments/secrets/HistoryDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,23 +86,21 @@ export const HistoryDialog = ({

const { publicKey, privateKey } = await envKeyring(seed)

console.log('decrupting', data.secrets[0].id)

const decryptedSecret = await decryptSecretHistory(data.secrets[0], {
privateKey,
publicKey,
salt: '',
})

setClientSecret(decryptedSecret)
console.log('Decrypted secret:', decryptedSecret)
}
} catch (error) {
console.error('Error fetching or decrypting secret history:', error)
}
}

if (keyring && isOpen) fetchAndDecryptHistory()
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [keyring, isOpen, secret, getHistory])

const getEventTypeColor = (eventType: ApiSecretEventEventTypeChoices) => {
Expand Down

0 comments on commit d7ab41b

Please sign in to comment.