mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-06-14 20:11:22 +00:00
Add comment
This commit is contained in:
parent
f6c6480fe8
commit
451b2a27ea
@ -598,9 +598,8 @@ export const Group = ({
|
|||||||
}, [myAddress]);
|
}, [myAddress]);
|
||||||
|
|
||||||
const getGroupOwner = async (groupId) => {
|
const getGroupOwner = async (groupId) => {
|
||||||
|
if (groupId == '0') return; // general group has id=0
|
||||||
try {
|
try {
|
||||||
if (groupId == 0) return;
|
|
||||||
|
|
||||||
const url = `${getBaseApiReact()}/groups/${groupId}`;
|
const url = `${getBaseApiReact()}/groups/${groupId}`;
|
||||||
const response = await fetch(url);
|
const response = await fetch(url);
|
||||||
const data = await response.json();
|
const data = await response.json();
|
||||||
@ -877,8 +876,7 @@ export const Group = ({
|
|||||||
};
|
};
|
||||||
|
|
||||||
const getOwnerNameForGroup = async (owner: string, groupId: string) => {
|
const getOwnerNameForGroup = async (owner: string, groupId: string) => {
|
||||||
if (groupId == '0') return;
|
if (groupId == '0') return; // general group has id=0
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (!owner) return;
|
if (!owner) return;
|
||||||
if (groupsOwnerNamesRef.current[groupId]) return;
|
if (groupsOwnerNamesRef.current[groupId]) return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user