diff --git a/src/helpers/objectIsEmpty.ts b/src/helpers/objectIsEmpty.ts new file mode 100644 index 00000000..e51e2c4f --- /dev/null +++ b/src/helpers/objectIsEmpty.ts @@ -0,0 +1,6 @@ +// https://stackoverflow.com/a/32108184/10924593 +export function objectIsEmpty(obj: any): boolean { + return obj + && Object.keys(obj).length === 0 + && Object.getPrototypeOf(obj) === Object.prototype +} \ No newline at end of file diff --git a/src/views/user/settings/General.vue b/src/views/user/settings/General.vue index 0efc6b22..dec9c826 100644 --- a/src/views/user/settings/General.vue +++ b/src/views/user/settings/General.vue @@ -85,7 +85,8 @@ v-for="lang in availableLanguageOptions" :key="lang.code" :value="lang.code" - >{{ lang.title }} + >{{ lang.title }} + @@ -154,7 +155,7 @@ export default defineComponent({