回答編集履歴

1

コード修正

2020/06/14 13:37

投稿

inukujira
inukujira

スコア130

test CHANGED
@@ -14,17 +14,9 @@
14
14
 
15
15
  ]
16
16
 
17
- if(checkparam.some((v) => v.state === 1 )) {
17
+ if(checkparam.some((v) => v.state === 1 ) && checkparam.some((v) => v.state === 2 )) {
18
18
 
19
- if(checkparam.some((v) => v.state === 2 )) {
20
-
21
- result = 3
19
+ result = 3
22
-
23
- } else {
24
-
25
- result = 1
26
-
27
- }
28
20
 
29
21
  } else if (checkparam.some((v) => v.state === 2)) {
30
22