add mandate_date_signed formatting
This commit is contained in:
@@ -51,7 +51,9 @@ export const actions = {
|
|||||||
},
|
},
|
||||||
bank_account: {
|
bank_account: {
|
||||||
id: Number(formData.get("bank_account_id")),
|
id: Number(formData.get("bank_account_id")),
|
||||||
mandate_date_signed: String(formData.get("mandate_date_signed")),
|
mandate_date_signed: toRFC3339(
|
||||||
|
String(formData.get("mandate_date_signed"))
|
||||||
|
),
|
||||||
bank: String(formData.get("bank")),
|
bank: String(formData.get("bank")),
|
||||||
account_holder_name: String(formData.get("account_holder_name")),
|
account_holder_name: String(formData.get("account_holder_name")),
|
||||||
iban: String(formData.get("iban")),
|
iban: String(formData.get("iban")),
|
||||||
@@ -111,7 +113,10 @@ export const actions = {
|
|||||||
locals.user.membership.end_date =
|
locals.user.membership.end_date =
|
||||||
locals.user.membership.end_date.split("T")[0];
|
locals.user.membership.end_date.split("T")[0];
|
||||||
}
|
}
|
||||||
|
if (locals.user.bank_account?.mandate_date_signed) {
|
||||||
|
locals.user.bank_account.mandate_date_signed =
|
||||||
|
locals.user.bank_account.mandate_date_signed.split("T")[0];
|
||||||
|
}
|
||||||
throw redirect(303, `/auth/about/${response.id}`);
|
throw redirect(303, `/auth/about/${response.id}`);
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user