Skip to content

Commit

Permalink
delete useless print messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhiquanCao committed May 1, 2023
1 parent 0f8cd31 commit aff4b89
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/components/Guild.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ const Guild = () => {
const getHeroOptions = () => {
axios.get(HERO_OPTIONS_URL)
.then((response) => {
console.log(response.data.Response);
setHeroOptions(response.data.Response);
})
.catch((error) => {
Expand All @@ -108,7 +107,6 @@ const Guild = () => {
}, []);

const clickGuild = () => {
console.log("guild clicked");
setDisplayStatus(() => {
return {
'guild': { display: "inline-block" },
Expand All @@ -120,7 +118,6 @@ const Guild = () => {
}

const clickHero = (event) => {
console.log("the hero id is: " + event.target.value);
axios.post(HERO_DETAIL_URL, { "id": parseInt(event.target.value) })
.then((response) => {
console.log(response);
Expand Down Expand Up @@ -176,7 +173,6 @@ const Guild = () => {
const clickQuest = (event) => {
axios.post(QUEST_DETAIL_URL, { "id": JSON.parse(event.target.value) })
.then((response) => {
console.log(response);
setQuestDetail(response.data.Response);
setDisplayStatus(() => {
return {
Expand Down Expand Up @@ -232,7 +228,6 @@ const Guild = () => {
};

const createParty = () => {
console.log("create party clicked");
setCreatePartyDisplay({ display: "inline-block" });
}

Expand Down Expand Up @@ -302,7 +297,6 @@ const Guild = () => {
}

const submitHeroOption = () => {
console.log("the option is " + choosenHeroOption);
if (choosenHeroOption === undefined) {
return;
}
Expand Down Expand Up @@ -368,7 +362,6 @@ const Guild = () => {
const disbandParty = () => {
axios.post(DISBAND_PARTY_URL, { "id": guildDetail.ID, "party_id": partyDetail.ID })
.then((response) => {
console.log(response.data.Response);
if (response.data.Response !== "Success") {
alert(response.data.Response);
return;
Expand Down Expand Up @@ -410,7 +403,6 @@ const Guild = () => {
const sellQuest = () => {
axios.post(SELL_QUEST_URL, { "id": questDetail.ID, "guild_id": guildDetail.ID })
.then((response) => {
console.log(response.data.Response);
if (response.data.Response !== "Success") {
alert(response.data.Response);
return;
Expand Down

0 comments on commit aff4b89

Please sign in to comment.