Sfoglia il codice sorgente

update checking

CR013B2
Alex Cheung 2 mesi fa
parent
commit
1f3099d30b
2 ha cambiato i file con 5 aggiunte e 7 eliminazioni
  1. +3
    -5
      src/pages/PublicNotice/ApplyForm/index.js
  2. +2
    -2
      src/utils/Utils.js

+ 3
- 5
src/pages/PublicNotice/ApplyForm/index.js Vedi File

@@ -93,11 +93,9 @@ const ApplyForm = () => {
label={getIssueLabel(data)}
/>
);
setGazetteIssueList(issueList);
setSelection(selection);
}
if (checkIsOnlyOnlinePayment()){
if (checkIsOnlyOnlinePaymentByIssueDate(data.issueDate)) {
if (!checkIsOnlyOnlinePaymentByIssueDate(data.issueDate)) {
selection.push(
<FormControlLabel
key={data.id}
@@ -106,11 +104,11 @@ const ApplyForm = () => {
label={getIssueLabel(data)}
/>
);
setGazetteIssueList(issueList);
setSelection(selection);
}
}
}
setGazetteIssueList(issueList);
setSelection(selection);
}
}
setUserData(response);


+ 2
- 2
src/utils/Utils.js Vedi File

@@ -195,7 +195,7 @@ export const isPasswordExpiry = () =>{

export const checkIsOnlyOnlinePaymentByIssueDate = (date) => {
// const targetDate = new Date(2025, 7, 1, 0, 0, 0) //2026-01-28T08:00:00.000Z hardcode
const targetDate = new Date(2025, 9, 17, 8, 0, 0) //2025-10-17T08:00:00.000Z
const targetDate = new Date(2025, 9, 17, 0, 0, 0) //2025-10-17T08:00:00.000Z
const checkDate = DateUtils.convertToDate(date)
if (isDummyLoggedIn()){
return false;
@@ -211,7 +211,7 @@ export const checkIsOnlyOnlinePaymentByIssueDate = (date) => {

export const checkIsOnlyOnlinePayment = () => {
// const targetDate = new Date(2025, 28, 0, 0, 0, 0) // hardcode
const targetDate = new Date(2025, 9, 10, 0, 0, 0) // hardcode
const targetDate = new Date(2025, 9, 8, 0, 0, 0) // hardcode
const checkDate = DateUtils.convertToDate(new Date())
if (isDummyLoggedIn()){
return false;


Caricamento…
Annulla
Salva