|
|
|
@@ -161,9 +161,10 @@ export class 申込 { |
|
|
|
throw new Message("空き車室がありません"); |
|
|
|
} |
|
|
|
|
|
|
|
const 車室番号 = Number(target.value.車室番号.value); |
|
|
|
const 車室番号 = target.value.車室番号.value; |
|
|
|
console.log({ 車室一覧: this.車室一覧, 車室番号 }); |
|
|
|
const 車室 = this.車室一覧.find((room) => { |
|
|
|
return Number(room.車室番号.value) === 車室番号; |
|
|
|
return room.車室番号.value === 車室番号; |
|
|
|
}); |
|
|
|
if (!車室) { |
|
|
|
throw new Message("車室がありません"); |
|
|
|
|