Skip to content

Commit

Permalink
debug addWalletMoney
Browse files Browse the repository at this point in the history
  • Loading branch information
swapnil-ahlawat committed Mar 29, 2021
1 parent 9e6ba8b commit 3839982
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Frontend/screens/Scan.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@ const Scan = ({route, navigation }) => {
})();
}, []);

async function addWalletMoney(){
console.log(modeTag);
console.log(phoneNo);
async function addWalletMoney(phoneNo){
console.log(phoneNo +"wallet")
var url = LINK+"/user/addWalletMoney";
try {
const response = await fetch(url, {
Expand Down Expand Up @@ -177,8 +176,8 @@ const Scan = ({route, navigation }) => {
deleteOrder();
}
else if(modeTag==="Delivery Personnel"){
setPhoneNo(responseData.userPhoneNo)
addWalletMoney();
console.log(responseData.userPhoneNo +"response")
addWalletMoney(responseData.userPhoneNo );
}
else{
setModalVisible(true)
Expand Down

0 comments on commit 3839982

Please sign in to comment.