|
@@ -242,6 +242,9 @@ const EditNmDataScreen = ({ navigation, route }: { navigation: any; route: any }
|
|
|
}
|
|
|
}
|
|
|
);
|
|
|
+ Alert.alert('Success', 'Visit updated successfully!', [
|
|
|
+ { text: 'OK', onPress: () => navigation.goBack() }
|
|
|
+ ]);
|
|
|
},
|
|
|
onError: (error) => {
|
|
|
console.log('updateVisitAsync error', error);
|
|
@@ -817,7 +820,7 @@ const EditNmDataScreen = ({ navigation, route }: { navigation: any; route: any }
|
|
|
itemStyle={{ fontSize: 16, fontFamily: 'montserrat-600' }}
|
|
|
isCyclic={true}
|
|
|
pickerData={years}
|
|
|
- selectedValue={selectedYear}
|
|
|
+ selectedValue={selectedYear.toString()}
|
|
|
onValueChange={(value: number) => {
|
|
|
setSelectedYear(value);
|
|
|
}}
|