Skip to content

Commit 6b33a36

Browse files
committed
chore: add comment
1 parent e8a55b3 commit 6b33a36

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/console/src/pages/ApplicationDetails/ApplicationDetailsContent/CreateSecretModal.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ function CreateSecretModal({ appId, isOpen, onClose }: Props) {
4848
const expirationDays = watch('expiration');
4949
const [expirationDate, setExpirationDate] = useState<Date>();
5050

51+
// Update expiration date every second since our options are relative to the current time (in
52+
// days).
5153
useEffect(() => {
5254
const setDate = () => {
5355
if (expirationDays === neverExpires) {

0 commit comments

Comments
 (0)