Skip to content
This repository was archived by the owner on Jul 10, 2019. It is now read-only.

Commit f399a25

Browse files
committed
🎪 fix: change isOdd return value from number to boolean
1 parent 96fd6de commit f399a25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/store/counter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ export const state = (): IState => ({
1616
// Convert to global name
1717
// It is an error if there is excess or deficiency
1818
export const getters = {
19-
isOdd: (state: IState): number => {
20-
return state.count % 2
19+
isOdd: (state: IState): boolean => {
20+
return state.count % 2 === 0
2121
}
2222
}
2323
export type Getters = Convertor<

0 commit comments

Comments
 (0)