Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
revoxhere authored Apr 14, 2024
1 parent 93f223c commit 527a8f2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions 2023/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -936,8 +936,13 @@ const user_data = (req_username, first_open) => {
})
.then(data => {
data = data.result;
duco_price = data.exch_rates["max"]["price"];
create_prices(data.exch_rates);
duco_price = data["prices"]["max"];

try {
create_prices(data.exch_rates);
} catch(error) {
console.log(error);
}

if (first_open) {
if (api_url == "server2.duinocoin.com") {
Expand Down

0 comments on commit 527a8f2

Please sign in to comment.