Skip to content

Commit

Permalink
fix(Currency): name now defaults to nanoid()
Browse files Browse the repository at this point in the history
  • Loading branch information
N00nDay committed Nov 13, 2023
1 parent 24429e5 commit 241493b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/lib/components/currency/Currency.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
import { error as errorIcon, close } from '../../icons';
import { writable, type Writable } from 'svelte/store';
import { twMerge } from 'tailwind-merge';
import { nanoid } from 'nanoid';
export let name: string;
export let name: string = nanoid();
export let error: string | undefined = undefined;
export let placeholder: string | undefined = undefined;
export let value: string | undefined = undefined;
Expand Down
2 changes: 1 addition & 1 deletion src/routes/currency/examples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const props: Prop[] = [
id: '1',
prop: 'name',
type: 'string',
default: ''
default: 'nanoid()'
},
{
id: '2',
Expand Down

0 comments on commit 241493b

Please sign in to comment.