File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ import Routes from '@/navigation/routesNames';
33
33
import { haptics } from '@/utils' ;
34
34
import logger from '@/utils/logger' ;
35
35
import { deriveAccountFromWalletInput } from '@/utils/wallet' ;
36
+ import { getDeviceId } from '@/analytics/utils' ;
36
37
37
38
export const WalletDiagnosticsSheetHeight = '100%' ;
38
39
const LoadingSpinner = android ? Spinner : ActivityIndicator ;
@@ -209,13 +210,15 @@ const WalletDiagnosticsSheet = () => {
209
210
useEffect ( ( ) => {
210
211
const init = async ( ) => {
211
212
try {
213
+ // get and set uuid
214
+ const userIdentifier = await getDeviceId ( ) ;
215
+ setUuid ( userIdentifier ) ;
216
+
217
+ // get wallet and set wallet data
212
218
const allKeys = await loadAllKeys ( ) ;
213
219
const processedKeys = await Promise . all (
214
220
allKeys
215
221
. filter ( key => {
216
- if ( key ?. username === 'analyticsUserIdentifier' ) {
217
- setUuid ( key . password ) ;
218
- }
219
222
return (
220
223
key ?. username ?. indexOf ( seedPhraseKey ) !== - 1 ||
221
224
key ?. username ?. indexOf ( privateKeyKey ) !== - 1
You can’t perform that action at this time.
0 commit comments