- nuke visible from the face of the earth with fire.

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-01-12 17:25:25 -05:00
parent 7d6e61043e
commit ba32a71786
58 changed files with 227 additions and 229 deletions

View File

@@ -46,7 +46,7 @@ function PaymentModalContainer({
const [updatePayment] = useMutation(UPDATE_PAYMENT);
const { t } = useTranslation();
const { context, actions, visible } = paymentModal;
const { context, actions, open } = paymentModal;
const [loading, setLoading] = useState(false);
@@ -130,12 +130,12 @@ function PaymentModalContainer({
};
useEffect(() => {
if (visible) {
if (open) {
form.resetFields();
form.resetFields();
form.setFieldsValue(context);
}
}, [visible, form, context]);
}, [open, form, context]);
useEffect(() => {
if (enterAgain) form.submit();
@@ -148,7 +148,7 @@ function PaymentModalContainer({
? t("payments.labels.new")
: t("payments.labels.edit")
}
open={visible}
open={open}
destroyOnClose
okText={t("general.actions.save")}
onOk={() => form.submit()}