Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
luisrguerra committed Feb 29, 2024
1 parent 975038c commit 42e0175
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dashboard-v1/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,11 @@ <h4 id="saldoAnual"class="saldo saldoPositivo"></h4>
//printar
console.log(urlDataString);

let cash;

try {
//converter string para objeto
JSON.parse(urlDataString);
cash = JSON.parse(urlDataString);
} catch (error) {
alert('Erro ao carregar dados');
//redirecionar para google.com
Expand Down

0 comments on commit 42e0175

Please sign in to comment.