From 527a8f2abd02a0e6ca1e11ccf45457e63a4b0b40 Mon Sep 17 00:00:00 2001 From: revoxhere <50244265+revoxhere@users.noreply.github.com> Date: Mon, 15 Apr 2024 00:00:43 +0200 Subject: [PATCH] Update main.js --- 2023/js/main.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/2023/js/main.js b/2023/js/main.js index 0329879..3f4b02d 100644 --- a/2023/js/main.js +++ b/2023/js/main.js @@ -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") {