Skip to content

Commit

Permalink
static message if no crop data
Browse files Browse the repository at this point in the history
  • Loading branch information
Amruth-Vamshi committed Dec 12, 2023
1 parent 099e666 commit b9b4836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xstate/prompt/prompt.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ The data is shared from https://weather.visualcrossing.com
.then(response => response.json())
.then(result => {return result})
.catch(error => console.log('error', error));
if(!cropData.records.length) return false
if(!cropData.records.length) return "Data is not available at https://agmarknet.gov.in/"
let returnString = `*Crop:* ${cropData.records[0].commodity}`
cropData.records.forEach(data=>{
returnString+=`
Expand Down

0 comments on commit b9b4836

Please sign in to comment.