Skip to content

Commit 950217a

Browse files
authored
Update account.html
1 parent 183b32b commit 950217a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/account.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,13 @@
110110
const res = await fetch(`https://scratch-coding-hut.github.io/api/orders?username=${username}`);
111111
if (!res.ok) throw new Error('Failed to fetch data');
112112

113-
const data = await res.json();
113+
const json = await res.json();
114114
var completedorders = json[1].completed-orders;
115115
var pendingorders = json[1].pending-orders;
116116
document.getElementById('mainText').innerHTML = `
117117
<p>Pending Orders: ${completedorders}</p>
118118
<p>Completed Orders: ${pendingorders}</p>
119+
<p>For Developers: ${json}</p>
119120
`;
120121
} else {
121122
await checkAuth();

0 commit comments

Comments
 (0)