Skip to content

Commit 87ecde8

Browse files
committed
chore: fixed failing test cases
1 parent cc95803 commit 87ecde8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

template/src/screens/AuthScreens/Login/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const Login: React.FC<LoginProps> = () => {
3434
});
3535
const {t} = useTranslation();
3636

37-
const passwordRef = useRef() as any;
37+
const passwordRef = useRef(null) as any;
3838

3939
const onEmailSubmit = () => {
4040
if (passwordRef.current) {

template/src/screens/AuthScreens/Signup/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ const Signup: React.FC = () => {
3232
});
3333
const {t} = useTranslation();
3434

35-
const emailRef = useRef() as any;
36-
const passwordRef = useRef() as any;
35+
const emailRef = useRef(null) as any;
36+
const passwordRef = useRef(null) as any;
3737

3838
const onNameSubmit = () => {
3939
if (emailRef.current) {

0 commit comments

Comments
 (0)