diff --git a/src/main/resources/templates/fixed_cost_create.html b/src/main/resources/templates/fixed_cost_create.html
index c6397e9..0c478d1 100644
--- a/src/main/resources/templates/fixed_cost_create.html
+++ b/src/main/resources/templates/fixed_cost_create.html
@@ -40,8 +40,8 @@
@@ -70,7 +70,7 @@
-
@@ -94,7 +94,7 @@
transactionType.addEventListener("change", function () {
- if (this.value === "1") {
+ if (this.value === "0") {
for (let i = 0; i < expenseList.length; i++) {
expenseList[i].style.display = "";
@@ -104,7 +104,7 @@
incomeList[i].style.display = "none";
}
- } else if (this.value === "2") {
+ } else if (this.value === "1") {
for (let i = 0; i < expenseList.length; i++) {
expenseList[i].style.display = "none";
diff --git a/src/main/resources/templates/transaction_create.html b/src/main/resources/templates/transaction_create.html
index 760047b..8f06bd9 100644
--- a/src/main/resources/templates/transaction_create.html
+++ b/src/main/resources/templates/transaction_create.html
@@ -45,11 +45,11 @@
選択してください
-
-
@@ -124,15 +124,15 @@
const tType = '[[${session.tType}]]';
if (tType == "0") {
- transactionType.value = 1;
+ transactionType.value = 0;
} else {
- transactionType.value = 2;
+ transactionType.value = 1;
}
transactionType.addEventListener("change", function () {
- if (this.value === "1") {
+ if (this.value === "0") {
for (let i = 0; i < expenseList.length; i++) {
expenseList[i].style.display = "";
@@ -142,7 +142,7 @@
incomeList[i].style.display = "none";
}
- } else if (this.value === "2") {
+ } else if (this.value === "1") {
for (let i = 0; i < expenseList.length; i++) {
expenseList[i].style.display = "none";