Closed DanielRivers closed 1 month ago
The recent update to LoginLink.js
involves enhancing the robustness of a conditional check. Specifically, the change ensures that the postLoginRedirectURL
is safely accessed using optional chaining (?.
) before invoking the startsWith
method. This prevents potential errors when postLoginRedirectURL
is null
or undefined
.
File | Change Summary |
---|---|
src/components/LoginLink.js |
Updated the conditional check for postLoginRedirectURL to use optional chaining (?. ) before startsWith . |
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Explain your changes
null check was failing, this is a quick fix
Checklist
🛟 If you need help, consider asking for advice over in the Kinde community.