diff --git a/src/assets/ethereum.svg b/src/assets/ethereum.svg deleted file mode 100644 index 6e54599..0000000 --- a/src/assets/ethereum.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/components/pages/About.vue b/src/components/pages/About.vue index 56837cd..b3a6aba 100644 --- a/src/components/pages/About.vue +++ b/src/components/pages/About.vue @@ -149,7 +149,6 @@ import { computed, defineComponent, onMounted, reactive, toRefs } from '@vue/com import { useOnline } from '@/use/online' import paypal from '@/assets/paypal.svg' -import ethereum from '@/assets/ethereum.svg' export default defineComponent({ setup(_, ctx) { @@ -179,7 +178,6 @@ export default defineComponent({ return { ...toRefs(state), paypal, - ethereum, isOnline } } @@ -204,10 +202,6 @@ i::v-deep svg { width: 20px; } -.ethereum::v-deep svg { - fill: var(--foreground); -} - :link { text-decoration: none; } diff --git a/src/plugins/i18n.js b/src/plugins/i18n.js index 20f74de..c0f482c 100644 --- a/src/plugins/i18n.js +++ b/src/plugins/i18n.js @@ -32,7 +32,7 @@ const i18n = new VueI18n({ return 1 } - if (n1 == 1) { + if (n1 === 1) { return 0 } diff --git a/src/store/index.js b/src/store/index.js index 09167b1..0725a61 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -1,4 +1,4 @@ -import Vuex from 'vuex' +import Vuex, { Store } from 'vuex' import Vue from 'vue' import appInfo from '@/store/modules/appInfo' @@ -7,7 +7,7 @@ import errors from '@/store/modules/errors' Vue.use(Vuex) -export default new Vuex.Store({ +export default new Store({ modules: { appInfo, login, diff --git a/src/use/favorites.js b/src/use/favorites.js index 43cab69..5065566 100644 --- a/src/use/favorites.js +++ b/src/use/favorites.js @@ -1,4 +1,4 @@ -import { ref, computed, watchEffect } from '@vue/composition-api' +import { ref, computed } from '@vue/composition-api' import store from '@/store' import { fetchData } from '@/utils/api' diff --git a/src/utils/utils.js b/src/utils/utils.js index 08554ef..9059b00 100644 --- a/src/utils/utils.js +++ b/src/utils/utils.js @@ -135,9 +135,8 @@ export function getPropertyWithFallback(obj, ...props) { // Searching the properties in the object const valueToTest = hasDotNotation ? prop.split('.').reduce((o, i) => { - if (o) { - return o[i] - } + if (o) return o[i] + return undefined }, obj) : obj[prop]