aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--application/components/keyboard-picker.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/application/components/keyboard-picker.vue b/application/components/keyboard-picker.vue
index a6fd529..12008c2 100644
--- a/application/components/keyboard-picker.vue
+++ b/application/components/keyboard-picker.vue
@@ -35,13 +35,13 @@ export default {
])
const selectedSource = localStorage.getItem('selectedSource')
- const onlySource = sourceChoices.length === 1 ? sourceChoices[0] : null
+ const onlySource = sourceChoices.length === 1 ? sourceChoices[0].id : null
return {
sourceChoices,
source: onlySource || (
sourceChoices.find(source => source.id === selectedSource)
- ? selectedSource
+ ? selectedSource.id
: null
)
}