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:
parent
e8a55b38d0
commit
6b33a36960
1 changed files with 2 additions and 0 deletions
|
@ -48,6 +48,8 @@ function CreateSecretModal({ appId, isOpen, onClose }: Props) {
|
||||||
const expirationDays = watch('expiration');
|
const expirationDays = watch('expiration');
|
||||||
const [expirationDate, setExpirationDate] = useState<Date>();
|
const [expirationDate, setExpirationDate] = useState<Date>();
|
||||||
|
|
||||||
|
// Update expiration date every second since our options are relative to the current time (in
|
||||||
|
// days).
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const setDate = () => {
|
const setDate = () => {
|
||||||
if (expirationDays === neverExpires) {
|
if (expirationDays === neverExpires) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue