File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
packages/clerk-js/src/core/auth Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @clerk/clerk-js ' : patch
3+ ---
4+
5+ Do not throw error on ` captchaHeartbeat ` if ` displayConfig ` is ` null ` .
Original file line number Diff line number Diff line change @@ -35,14 +35,14 @@ export class CaptchaHeartbeat {
3535 }
3636
3737 private isEnabled ( ) {
38- return ! ! this . clerk . __unstable__environment ?. displayConfig . captchaHeartbeat ;
38+ return ! ! this . clerk . __unstable__environment ?. displayConfig ? .captchaHeartbeat ;
3939 }
4040
4141 private clientBypass ( ) {
4242 return this . clerk . client ?. captchaBypass ;
4343 }
4444
4545 private intervalInMs ( ) {
46- return this . clerk . __unstable__environment ?. displayConfig . captchaHeartbeatIntervalMs ?? 10 * 60 * 1000 ;
46+ return this . clerk . __unstable__environment ?. displayConfig ? .captchaHeartbeatIntervalMs ?? 10 * 60 * 1000 ;
4747 }
4848}
You can’t perform that action at this time.
0 commit comments