Skip to content

Commit e64b947

Browse files
committed
key validation
1 parent 3773169 commit e64b947

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/dialogs/dataSources/COVIDcast.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
function fetchMetadata() {
3939
fetchCOVIDcastMeta(form_key).then((res) => {
4040
if (res.length == 0) {
41-
valid_key = form_key == ''; // mark key as valid if it's empty, otherwise invalid
41+
valid_key = false;
4242
} else {
4343
valid_key = true;
4444
api_key = form_key; // API key is valid -> use it to fetch data later on

0 commit comments

Comments
 (0)