Skip to content

Commit

Permalink
fix(settings): dont evaluate 0 values as false booleans
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Jul 11, 2020
1 parent dc67d66 commit ae4d11a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/pages/settings/Switch.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div :title="description">
<div v-if="value !== undefined && !Number.isInteger(value)">
<!-- If its a number -->
<div v-if="setting && Number.isInteger(setting.defaultValue)">
<div class="inline-block align-middle form-switch">
<input
:id="settingIndex"
Expand Down

0 comments on commit ae4d11a

Please sign in to comment.