Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,12 @@ function ContactMethodDetailsPage({route}: ContactMethodDetailsPageProps) {

useEffect(() => {
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
if (loginData?.validatedDate || prevPendingDeletedLogin) {
if (!loginData || loginData?.validatedDate || prevPendingDeletedLogin) {
return;
}
resetContactMethodValidateCodeSentState(contactMethod);
// eslint-disable-next-line react-compiler/react-compiler, react-hooks/exhaustive-deps -- The prevPendingDeletedLogin is a ref, so no need to add it to dependencies.
}, [contactMethod, loginData?.validatedDate]);
}, [contactMethod, loginData]);

const getThreeDotsMenuItems = useCallback(() => {
const menuItems = [];
Expand Down