Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions packages/create-invoice-form/src/lib/invoice/form.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
export let handleNetworkChange: (chainId: string) => void;
export let networks;
export let defaultCurrencies: any = [];
export let filteredSettlementCurrencies: CurrencyTypes.CurrencyDefinition[] = [];
export let filteredSettlementCurrencies: CurrencyTypes.CurrencyDefinition[] =
[];
export let cipherProvider: CipherProviderTypes.ICipherProvider | undefined;

export let invoiceCurrencyDropdown;
Expand Down Expand Up @@ -161,7 +162,7 @@

$: if (!formData.dueDate) {
formData.dueDate = inputDateFormat(
new Date(new Date(formData.issuedOn).getTime() + 24 * 60 * 60 * 1000)
new Date(new Date(formData.issuedOn).getTime() + 30 * 24 * 60 * 60 * 1000)
);
}
</script>
Expand Down Expand Up @@ -406,8 +407,7 @@
<SearchableDropdown
bind:this={invoiceCurrencyDropdown}
getValue={(currency) => currency.value.symbol}
getDisplayValue={(currency) =>
`${currency.value.symbol}`}
getDisplayValue={(currency) => `${currency.value.symbol}`}
placeholder="Invoice currency"
items={defaultCurrencies
?.filter((curr) => curr)
Expand All @@ -419,7 +419,7 @@
onSelect={handleInvoiceCurrencyChange}
/>
</div>
<div class="searchable-dropdown-container">
<div class="searchable-dropdown-container">
<SearchableDropdown
bind:this={networkDropdown}
items={networks
Expand Down
Loading