Browse Source

update check public date

CR013B2
Alex Cheung 2 months ago
parent
commit
95ab87723f
2 changed files with 6 additions and 6 deletions
  1. +2
    -2
      src/pages/PublicNotice/ApplyForm/PublicNoticeApplyForm.js
  2. +4
    -4
      src/pages/PublicNotice/ApplyForm/index.js

+ 2
- 2
src/pages/PublicNotice/ApplyForm/PublicNoticeApplyForm.js View File

@@ -21,7 +21,7 @@ import {
isDummyLoggedIn,
// isCreditorLoggedIn,
checkIsOnlyOnlinePaymentByIssueDate,
checkIsOnlyOnlinePaymentApply,
// checkIsOnlyOnlinePaymentApply,
} from "utils/Utils";

import { useNavigate } from "react-router-dom";
@@ -583,7 +583,7 @@ const PublicNoticeApplyForm = ({ loadedData, _selections, gazetteIssueList }) =>
aria-label={intl.formatMessage({ id: 'applyPublicNotice' })}
variant="contained"
type="submit"
disabled={checkIsOnlyOnlinePaymentApply(tickAccept)}
disabled={!tickAccept}
>
<FormattedMessage id="applyPublicNotice" />
</Button>


+ 4
- 4
src/pages/PublicNotice/ApplyForm/index.js View File

@@ -81,10 +81,10 @@ const ApplyForm = () => {
setSelection(selection);
} else {
let selection = [];
if (checkIsOnlyOnlinePayment()){
for (let i = 0; i < response.gazetteIssueList.length; i++) {
let data = response.gazetteIssueList[i];
// only add if false
for (let i = 0; i < response.gazetteIssueList.length; i++) {
let data = response.gazetteIssueList[i];
// only add if false
if (checkIsOnlyOnlinePayment()){
if (!checkIsOnlyOnlinePaymentByIssueDate(data.issueDate)) {
selection.push(
<FormControlLabel


Loading…
Cancel
Save