File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 1
- import { useContext , useState } from "react"
1
+ import { useContext , useEffect , useState } from "react"
2
2
3
3
import { DropdownOption } from "@/lib/types"
4
4
@@ -126,6 +126,14 @@ export const useWalletTable = ({
126
126
} )
127
127
)
128
128
129
+ useEffect ( ( ) => {
130
+ setWalletData (
131
+ walletData . map ( ( wallet ) => {
132
+ return { ...wallet , moreInfo : false , key : wallet . name }
133
+ } )
134
+ )
135
+ } , [ walletData ] )
136
+
129
137
// Context API for language filter
130
138
const { supportedLanguage } = useContext ( WalletSupportedLanguageContext )
131
139
Original file line number Diff line number Diff line change @@ -95,11 +95,15 @@ const FindWalletPage = () => {
95
95
96
96
// If any wallet supports user's locale, show them (shuffled) at the top and then the remaining ones
97
97
useEffect ( ( ) => {
98
+ const supportedLocaleWallets = getSupportedLocaleWallets ( locale ! )
99
+
100
+ const noSupportedLocaleWallets = getNonSupportedLocaleWallets ( locale ! )
101
+
98
102
setRandomizedWalletData (
99
103
supportedLocaleWallets . concat ( noSupportedLocaleWallets )
100
104
)
101
105
// eslint-disable-next-line react-hooks/exhaustive-deps
102
- } , [ ] )
106
+ } , [ locale ] )
103
107
104
108
const updateFilterOption = ( key ) => {
105
109
const updatedFilters = { ...filters }
You can’t perform that action at this time.
0 commit comments