Skip to content

Commit

Permalink
the voices
Browse files Browse the repository at this point in the history
  • Loading branch information
iantelli committed May 27, 2022
1 parent e0a0806 commit 250ae12
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion public/js/gotchuGacha.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ window.onclick = function (event) {

const targetClassList = event.target.className.split(" ");

if (targetClassList.includes("gachaRollButton")) {
if (targetClassList.includes("gachaRollButton") && playerCurrency >= 1000) {

// Subtract currency
// Sync with db or something
Expand Down
2 changes: 1 addition & 1 deletion public/js/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ if (profileSettings) {
const profileSettingsContainer = document.createElement("div");
profileSettingsContainer.className = "profileSettingsContainer";
profileSettingsContainer.innerHTML = `
<h1>${username}</h1>
<h1>${username || 'Guest'}</h1>
<div class="userProfileIcon"></div>
<div class="profileRow">
<div class= "wins"><h3>Total Wins</h3><h3 class="winCount">5</h3></div>
Expand Down
2 changes: 1 addition & 1 deletion routes/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const router = require('express').Router();

router.get("/user", (req, res) => {
const data = {
playerCurrency: 1000,
playerCurrency: 5000,
username: "USER",
}
const pet = {
Expand Down

0 comments on commit 250ae12

Please # to comment.