|
|
|
@@ -67,18 +67,21 @@ const ApplyForm = () => { |
|
|
|
); |
|
|
|
|
|
|
|
if (allTrue){ |
|
|
|
// either way, always render all issues |
|
|
|
const selection = issueList.map((data) => ( |
|
|
|
<FormControlLabel |
|
|
|
key={data.id} |
|
|
|
value={data.id} |
|
|
|
control={<Radio />} |
|
|
|
label={getIssueLabel(data)} |
|
|
|
/> |
|
|
|
)); |
|
|
|
|
|
|
|
setGazetteIssueList(issueList); |
|
|
|
setSelection(selection); |
|
|
|
if (checkIsOnlyOnlinePayment()) { |
|
|
|
const selection = issueList.map((data) => ( |
|
|
|
<FormControlLabel |
|
|
|
key={data.id} |
|
|
|
value={data.id} |
|
|
|
control={<Radio />} |
|
|
|
label={getIssueLabel(data)} |
|
|
|
/> |
|
|
|
)); |
|
|
|
setGazetteIssueList(issueList); |
|
|
|
setSelection(selection); |
|
|
|
} else { |
|
|
|
//setGazetteIssueList(issueList); |
|
|
|
//setSelection([]); |
|
|
|
} |
|
|
|
} else { |
|
|
|
let selection = []; |
|
|
|
for (let i = 0; i < response.gazetteIssueList.length; i++) { |
|
|
|
|