mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-05-11 04:07:51 +00:00
Format code
This commit is contained in:
parent
0e3c18b21a
commit
2327efa537
@ -88,7 +88,7 @@ export const WalletsAppWrapper = () => {
|
||||
justifyContent: 'space-between',
|
||||
}}
|
||||
>
|
||||
<Typography>Q-Wallets</Typography> // TODO translate
|
||||
<Typography>Q-Wallets</Typography>
|
||||
<ButtonBase onClick={handleClose}>
|
||||
<CloseIcon
|
||||
sx={{
|
||||
|
@ -107,7 +107,6 @@ export const WebSocketActive = ({ myAddress, setIsLoadingGroups }) => {
|
||||
directs: sortedDirects,
|
||||
})
|
||||
.catch((error) => {
|
||||
// TODO translate
|
||||
console.error(
|
||||
'Failed to handle active group data from socket:',
|
||||
error.message || 'An error occurred'
|
||||
|
@ -17,7 +17,7 @@ export const useBlockedAddresses = () => {
|
||||
if (userBlockedRef.current[address]) return true;
|
||||
return false;
|
||||
} catch (error) {
|
||||
//error
|
||||
console.log(error);
|
||||
}
|
||||
}, []);
|
||||
|
||||
@ -42,10 +42,13 @@ export const useBlockedAddresses = () => {
|
||||
console.error('Failed qortalRequest', error);
|
||||
});
|
||||
});
|
||||
|
||||
const blockedUsers = {};
|
||||
|
||||
response?.forEach((item) => {
|
||||
blockedUsers[item] = true;
|
||||
});
|
||||
|
||||
userBlockedRef.current = blockedUsers;
|
||||
|
||||
const response2 = await new Promise((res, rej) => {
|
||||
@ -66,10 +69,13 @@ export const useBlockedAddresses = () => {
|
||||
console.error('Failed qortalRequest', error);
|
||||
});
|
||||
});
|
||||
|
||||
const blockedUsers2 = {};
|
||||
|
||||
response2?.forEach((item) => {
|
||||
blockedUsers2[item] = true;
|
||||
});
|
||||
|
||||
userNamesBlockedRef.current = blockedUsers2;
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
|
@ -22,7 +22,7 @@ export const useHandleUserInfo = () => {
|
||||
};
|
||||
return data?.level;
|
||||
} catch (error) {
|
||||
//error
|
||||
console.log(error);
|
||||
}
|
||||
}, []);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user