We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 183b32b commit 950217aCopy full SHA for 950217a
src/account.html
@@ -110,12 +110,13 @@
110
const res = await fetch(`https://scratch-coding-hut.github.io/api/orders?username=${username}`);
111
if (!res.ok) throw new Error('Failed to fetch data');
112
113
- const data = await res.json();
+ const json = await res.json();
114
var completedorders = json[1].completed-orders;
115
var pendingorders = json[1].pending-orders;
116
document.getElementById('mainText').innerHTML = `
117
<p>Pending Orders: ${completedorders}</p>
118
<p>Completed Orders: ${pendingorders}</p>
119
+ <p>For Developers: ${json}</p>
120
`;
121
} else {
122
await checkAuth();
0 commit comments