Procházet zdrojové kódy

submission issue display update

CR013B2
Jason Chuang před 2 měsíci
rodič
revize
b14fe00338
1 změnil soubory, kde provedl 15 přidání a 12 odebrání
  1. +15
    -12
      src/pages/PublicNotice/ApplyForm/index.js

+ 15
- 12
src/pages/PublicNotice/ApplyForm/index.js Zobrazit soubor

@@ -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++) {


Načítá se…
Zrušit
Uložit