0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-03-24 22:41:28 -05:00

chore: add comment

This commit is contained in:
Gao Sun 2024-07-24 16:14:15 +08:00
parent e8a55b38d0
commit 6b33a36960
No known key found for this signature in database
GPG key ID: 13EBE123E4773688

View file

@ -48,6 +48,8 @@ function CreateSecretModal({ appId, isOpen, onClose }: Props) {
const expirationDays = watch('expiration');
const [expirationDate, setExpirationDate] = useState<Date>();
// Update expiration date every second since our options are relative to the current time (in
// days).
useEffect(() => {
const setDate = () => {
if (expirationDays === neverExpires) {