fix: quick add magic always disabled
This commit is contained in:
parent
e20be7b788
commit
4a1b402e62
1 changed files with 8 additions and 2 deletions
|
@ -9,6 +9,12 @@ export const setQuickAddMagicMode = (mode: PrefixMode) => {
|
|||
export const getQuickAddMagicMode = (): PrefixMode => {
|
||||
const mode = localStorage.getItem(key)
|
||||
|
||||
// @ts-ignore
|
||||
return PrefixMode[mode] || PrefixMode.Disabled
|
||||
switch (mode) {
|
||||
case PrefixMode.Default:
|
||||
return PrefixMode.Default
|
||||
case PrefixMode.Todoist:
|
||||
return PrefixMode.Todoist
|
||||
}
|
||||
|
||||
return PrefixMode.Disabled
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue