Skip to content

Commit

Permalink
corrigido erro de digitacao
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaliztro committed Dec 24, 2023
1 parent 572fdba commit 5e4ceaf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions javascript/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ function ValorFormatado(valor) {
}

function atualizarElementos() {
const maquinhasValores = Maquininhas();
const maquininhasValores = Maquininhas();

Object.keys(maquininhas).forEach(nomeMaquininha => {
let valorFormatado = ValorFormatado(maquinhasValores[nomeMaquininha]);
let valorFormatado = ValorFormatado(maquininhasValores[nomeMaquininha]);
const elementos = maquininhas[nomeMaquininha];

elementos.forEach(elementoId => {
Expand All @@ -74,7 +74,7 @@ function total() {
let total = Maquininhas().total + dinheiro + pix;
let valorFormatado = ValorFormatado(total)

somaTotal =+ total;
somaTotal += total;

let totMaq = ValorFormatado(Maquininhas().total);
let totDinh = ValorFormatado(totDin)
Expand Down

0 comments on commit 5e4ceaf

Please sign in to comment.