Skip to content

Commit 2f3b3ca

Browse files
cakekoamssalvatore
authored andcommitted
UI: Refresh OTP automatically on expiration
1 parent 0e8d266 commit 2f3b3ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

monkey/monkey_island/cc/ui/src/components/pages/RunMonkeyPage/RunManually/LocalManualRunOptions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const getContents = (props) => {
3030
seconds,
3131
minutes,
3232
restart
33-
} = useTimer({ expiryTimestamp: new Date() });
33+
} = useTimer({ expiryTimestamp: new Date(), onExpire: () => getOtp() });
3434

3535
const [otp, setOtp] = useState('');
3636
const [osType, setOsType] = useState(OS_TYPES.WINDOWS_64);

0 commit comments

Comments
 (0)