diff --git a/.env.example b/.env.example index c7b05316..82617571 100644 --- a/.env.example +++ b/.env.example @@ -29,11 +29,9 @@ PUBLIC_TIPPING_TIPJAR_ID="" PUBLIC_TIPPING_DEFAULT_AMOUNT="" PUBLIC_TIPPING_DEFAULT_CHECKED="false" -# Campaign limit -# Set a recurring day and month (DD-MM) to prevent projects from being in -# campaign past that date; the year is implicit and repeats every year -# Leave the value empty to disable the limit -PUBLIC_CAMPAIGN_MAX_END_DATE="" +# Campaign limits +PUBLIC_CAMPAIGN_MIN_REV_DAYS=14 +PUBLIC_CAMPAIGN_MAX_END_DATE="" # Accepts partial values, leave empty to disable limit # Facebook's share dialog # https://developers.facebook.com/docs/sharing/reference/share-dialog diff --git a/src/components/admin/charges/steps/StepCharge.svelte b/src/components/admin/charges/steps/StepCharge.svelte index 9dbf6015..8372511a 100644 --- a/src/components/admin/charges/steps/StepCharge.svelte +++ b/src/components/admin/charges/steps/StepCharge.svelte @@ -299,8 +299,7 @@ labelText={$t("pages.admin.charges.headers.amount")} helperText={$t("pages.admin.charges.create.fields.amountHelper")} required={true} - onInput={(e) => - onAmountInput(e.target instanceof HTMLInputElement ? e.target.value : "")} + onInput={(value) => onAmountInput(value.toString())} onBlur={onAmountBlur} /> - {#if shouldShowError("subtitle")} - - {/if} +