MCPcopy
hub / github.com/BlueWallet/BlueWallet / getDoNotTrackStorage

Function getDoNotTrackStorage

components/Context/SettingsProvider.tsx:22–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20import AsyncStorage from '@react-native-async-storage/async-storage';
21
22const getDoNotTrackStorage = async (): Promise<boolean> => {
23 try {
24 await DefaultPreference.setName(GROUP_IO_BLUEWALLET);
25 const doNotTrack = await DefaultPreference.get(BlueApp.DO_NOT_TRACK);
26 return doNotTrack === '1';
27 } catch {
28 console.error('Error getting DoNotTrack');
29 return false;
30 }
31};
32
33export const setTotalBalanceViewEnabledStorage = async (value: boolean): Promise<void> => {
34 try {

Callers 1

loadSettingsFunction · 0.85

Calls 2

getMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected