pay up implementation

This commit is contained in:
2025-03-19 20:44:26 +01:00
parent fd7d1ffd47
commit d491033c29
6 changed files with 152 additions and 14 deletions

View File

@@ -100,13 +100,13 @@ let _api = {
// Handle the response
if (!response.ok) {
_testPageFail(response.statusText);
return;
return -1;
}
const result = await response.json();
// Handle the result, was json valid?
if (!result) {
_testPageFail('Invalid JSON response');
return;
return -1;
}
return result;