Skip to content

Commit 6b230e4

Browse files
author
k.golikov
committed
Fix initial counter name
1 parent 529c896 commit 6b230e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pages/counterPage/CounterPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import Flex from '../../components/flex/Flex';
1010
import useWriteableLocalstorageState from '../../hooks/useWriteableLocalstorageState';
1111

1212
const createCounter = (name = '', count = 0): Counter => ({
13-
name: '',
14-
count: 0
13+
name,
14+
count
1515
});
1616

1717
const initialCounters: Counter[] = [createCounter('Count')];

0 commit comments

Comments
 (0)