Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 024eb24

Browse files
fix uuid (rainbow-me#4675)
1 parent fa6424c commit 024eb24

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

‎src/screens/WalletDiagnosticsSheet.js‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import Routes from '@/navigation/routesNames';
3333
import { haptics } from '@/utils';
3434
import logger from '@/utils/logger';
3535
import { deriveAccountFromWalletInput } from '@/utils/wallet';
36+
import { getDeviceId } from '@/analytics/utils';
3637

3738
export const WalletDiagnosticsSheetHeight = '100%';
3839
const LoadingSpinner = android ? Spinner : ActivityIndicator;
@@ -209,13 +210,15 @@ const WalletDiagnosticsSheet = () => {
209210
useEffect(() => {
210211
const init = async () => {
211212
try {
213+
// get and set uuid
214+
const userIdentifier = await getDeviceId();
215+
setUuid(userIdentifier);
216+
217+
// get wallet and set wallet data
212218
const allKeys = await loadAllKeys();
213219
const processedKeys = await Promise.all(
214220
allKeys
215221
.filter(key => {
216-
if (key?.username === 'analyticsUserIdentifier') {
217-
setUuid(key.password);
218-
}
219222
return (
220223
key?.username?.indexOf(seedPhraseKey) !== -1 ||
221224
key?.username?.indexOf(privateKeyKey) !== -1

0 commit comments

Comments
 (0)