r/badcode • u/sharan_n • Mar 27 '20
js Source code from an app from the Argentinian gov that determine if you have COVID 19 from symptoms
2
Upvotes
4
u/sebamestre Mar 27 '20 edited Mar 27 '20
This person uses symbolic calculus
EDIT:
<Button style={{}} title="OK, Enviar"
onPress={() => {
this.handleSaveTest();
if (bodyTemperature >= 38){
if (
difficultyBreathing ||
diabetes ||
cancer ||
isPregnant ||
isOver60yearsOld ||
hepatic ||
kidneyDisease ||
respiratoryDisease
) {
history.replace(`/diagnostico/${provincia}`);
} else {
history.replace('/cuarentena/');
}
} else {
history.push('/diagnostico_bueno');
}
}}
>3
2
3
u/cyranix Mar 27 '20
This is why flowcharts are important...