Skip to content

Commit 51128c2

Browse files
committed
getConfig to be a function
1 parent 9000cef commit 51128c2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/hooks/useDeck.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export const useDeck = (
174174
const props = {
175175
drawKey: (callback: DrawKey) => drawKey(parseInt(key), callback),
176176
config: keyConf?.config,
177-
getConfig: profiles.getConfig(parseInt(key)),
177+
getConfig: () => profiles.getConfig(parseInt(key)),
178178
};
179179

180180
if (initKeyConf) {

src/types/Module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ type ModuleOnPress = {
3131
type ModuleInit = {
3232
drawKey: (callback: DrawKey) => void;
3333
config: Config;
34-
getConfig: Promise<Config>;
34+
getConfig: () => Config;
3535
};
3636

3737
export type Module = {

0 commit comments

Comments
 (0)