Skip to content

Commit ec6ca36

Browse files
authored
chore: change default dueDate to 30 days (#290)
1 parent bc74471 commit ec6ca36

File tree

1 file changed

+5
-5
lines changed
  • packages/create-invoice-form/src/lib/invoice

1 file changed

+5
-5
lines changed

packages/create-invoice-form/src/lib/invoice/form.svelte

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
export let handleNetworkChange: (chainId: string) => void;
3030
export let networks;
3131
export let defaultCurrencies: any = [];
32-
export let filteredSettlementCurrencies: CurrencyTypes.CurrencyDefinition[] = [];
32+
export let filteredSettlementCurrencies: CurrencyTypes.CurrencyDefinition[] =
33+
[];
3334
export let cipherProvider: CipherProviderTypes.ICipherProvider | undefined;
3435
3536
export let invoiceCurrencyDropdown;
@@ -161,7 +162,7 @@
161162
162163
$: if (!formData.dueDate) {
163164
formData.dueDate = inputDateFormat(
164-
new Date(new Date(formData.issuedOn).getTime() + 24 * 60 * 60 * 1000)
165+
new Date(new Date(formData.issuedOn).getTime() + 30 * 24 * 60 * 60 * 1000)
165166
);
166167
}
167168
</script>
@@ -406,8 +407,7 @@
406407
<SearchableDropdown
407408
bind:this={invoiceCurrencyDropdown}
408409
getValue={(currency) => currency.value.symbol}
409-
getDisplayValue={(currency) =>
410-
`${currency.value.symbol}`}
410+
getDisplayValue={(currency) => `${currency.value.symbol}`}
411411
placeholder="Invoice currency"
412412
items={defaultCurrencies
413413
?.filter((curr) => curr)
@@ -419,7 +419,7 @@
419419
onSelect={handleInvoiceCurrencyChange}
420420
/>
421421
</div>
422-
<div class="searchable-dropdown-container">
422+
<div class="searchable-dropdown-container">
423423
<SearchableDropdown
424424
bind:this={networkDropdown}
425425
items={networks

0 commit comments

Comments
 (0)