Skip to content

Commit

Permalink
Add ProviderString type assertion in Staking.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
ccali11 committed Jul 17, 2023
1 parent 35be04f commit ed02687
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/web/src/pages/overview/components/Staking.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { ref, onMounted, onUnmounted, watch } from 'vue'
import { FormattedWalletOption, ProviderString } from '@casimir/types'
import VueFeather from 'vue-feather'
import usePrice from '@/composables/price'
import usePrice from '@/composables/price.ts'
import useEthers from '@/composables/ethers'
import useUsers from '@/composables/users'
import useContracts from '@/composables/contracts'
Expand Down Expand Up @@ -98,7 +98,7 @@ const aggregateAddressesByProvider = () => {
if (user.value) {
const accounts = user.value.accounts
const providers = accounts.map((account) => account.walletProvider)
const uniqueProviders = [...new Set(providers)]
const uniqueProviders = [...new Set(providers)] as Array<ProviderString>
uniqueProviders.forEach((provider) => {
const addresses = accounts.filter((account) => account.walletProvider === provider).map((account) => account.address)
formattedWalletOptions.value.push({
Expand Down

0 comments on commit ed02687

Please sign in to comment.