From 8c9558f2bdcd540153e9d85ce8b8604e6343c6a5 Mon Sep 17 00:00:00 2001 From: fapeg Date: Thu, 27 Oct 2022 01:48:27 +0200 Subject: [PATCH] Update groceryaug.html --- apps/groceryaug/groceryaug.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/groceryaug/groceryaug.html b/apps/groceryaug/groceryaug.html index 765d3a828..9ef816a03 100644 --- a/apps/groceryaug/groceryaug.html +++ b/apps/groceryaug/groceryaug.html @@ -66,7 +66,8 @@ console.log(this.responseText); var antwort =JSON.parse(this.responseText); antwort_val = antwort["value"]; - if(antwort_val == "undefined"){antwort_val = "Please enter an API key first!";} + console.log(antwort_val); + if(antwort_val == null){antwort_val = "Please enter an API key first!";} document.getElementById('area').value = antwort_val; } });