diff --git a/src/pages/Proof/Reply_Public/ProofForm.js b/src/pages/Proof/Reply_Public/ProofForm.js index 7459d13..df3919e 100644 --- a/src/pages/Proof/Reply_Public/ProofForm.js +++ b/src/pages/Proof/Reply_Public/ProofForm.js @@ -28,7 +28,7 @@ import { ThemeProvider } from "@emotion/react"; import { FormattedMessage, useIntl } from "react-intl"; import { isDummyLoggedIn, - checkIsOnlyOnlinePayment + checkIsOnlyOnlinePaymentByIssueDate } from "utils/Utils" const UploadFileTable = Loadable(React.lazy(() => import('./UploadFileTable'))); @@ -65,10 +65,10 @@ const FormPanel = ({ formData }) => { React.useEffect(() => { if (formData) { setData(formData); - setOnlyOnlinePayment(checkIsOnlyOnlinePayment()) + setOnlyOnlinePayment(checkIsOnlyOnlinePaymentByIssueDate(formData.issueDate)) if (isDummyLoggedIn()) { set_paymentMethod("demandNote") - } else if (checkIsOnlyOnlinePayment()){ + } else if (checkIsOnlyOnlinePaymentByIssueDate(formData.issueDate)){ set_paymentMethod("online") } }