Skip to content

Commit 480037c

Browse files
authored
Update rates.html
1 parent 3d3a228 commit 480037c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/rates.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,8 +1164,8 @@ <h2>${group.substr(0,1).toUpperCase()+group.substr(1)}</h2>
11641164

11651165
date.innerHTML = data.date;//`<span style="color:var(--bg3)">${yesterday.date} - </span>${data.date}`;
11661166

1167-
window.usd = data.prices.find(i=>i.slug=="usd").price;
1168-
window.usdt = data.prices.find(i=>i.slug=="usd").price;
1167+
window.usd = data.prices.find(i=>i.slug=="usd")?.price||0;
1168+
window.usdt = data.prices.find(i=>i.slug=="usd")?.price||0;
11691169
window.data = data;
11701170
render_list();
11711171
new Sortable(list, {

0 commit comments

Comments
 (0)