From cec777d1bf875000082861582f95a3959256ce9e Mon Sep 17 00:00:00 2001 From: Joaquin Date: Wed, 7 May 2025 17:11:58 -0700 Subject: [PATCH] fix/fixed problem when routing to dashboard --- src/public/scripts/geolocation.js | 2 +- src/views/dashboard.ejs | 1 - src/views/partials/header.ejs | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/public/scripts/geolocation.js b/src/public/scripts/geolocation.js index 82c6983..26f2e1a 100644 --- a/src/public/scripts/geolocation.js +++ b/src/public/scripts/geolocation.js @@ -54,7 +54,7 @@ function switchButton(clickedButton) { } function updateExchange(exRate) { - document.getElementById("exchange1").innerHTML = "$1.00 = $" +`${(1 * exRate).toFixed(2)}`; + document.getElementById("exchange").innerHTML = "$1.00 = $" +`${(1 * exRate).toFixed(2)}`; } async function getLatestExchange(position) { diff --git a/src/views/dashboard.ejs b/src/views/dashboard.ejs index 5bcdd79..88ed427 100644 --- a/src/views/dashboard.ejs +++ b/src/views/dashboard.ejs @@ -2,7 +2,6 @@ <%- include("./partials/header") %>
-

Welcome: <%= user.name %>

diff --git a/src/views/partials/header.ejs b/src/views/partials/header.ejs index f872576..f48549f 100644 --- a/src/views/partials/header.ejs +++ b/src/views/partials/header.ejs @@ -22,7 +22,7 @@

-

+