Skip to content

Commit 99abbbb

Browse files
committed
signup 2 fixes, no bugs now
1 parent 4802060 commit 99abbbb

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

KonditionExpo/app/signup2.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,21 @@ export default function SignUpStep2() {
5656
};
5757

5858
const handleNext = () => {
59-
if (!gender || !dobMM || !dobDD || !dobYYYY || !weight || !height) {
59+
if (
60+
!gender ||
61+
!dobMM ||
62+
!dobDD ||
63+
!dobYYYY ||
64+
!weight ||
65+
(heightUnit === 'ft/in' && (!heightFeet || !heightInches)) || // check feet/inches
66+
(heightUnit === 'cm' && !height) // check cm
67+
) {
6068
alert('Please fill out all fields');
6169
return;
6270
}
6371
router.replace('/home');
6472
};
73+
6574

6675
return (
6776
<KeyboardAvoidingView

0 commit comments

Comments
 (0)