We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4802060 commit 99abbbbCopy full SHA for 99abbbb
1 file changed
KonditionExpo/app/signup2.tsx
@@ -56,12 +56,21 @@ export default function SignUpStep2() {
56
};
57
58
const handleNext = () => {
59
- if (!gender || !dobMM || !dobDD || !dobYYYY || !weight || !height) {
+ 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
+ ) {
68
alert('Please fill out all fields');
69
return;
70
}
71
router.replace('/home');
72
73
+
74
75
return (
76
<KeyboardAvoidingView
0 commit comments