Skip to content

Commit

Permalink
fix names
Browse files Browse the repository at this point in the history
  • Loading branch information
cyri113 committed Feb 20, 2025
1 parent 94ca103 commit 9a0b91c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/reputation/ReputationItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ interface IReputationItemProps {
function name(platform: ICommunityPlatfromProps) {
switch (platform.name) {
case 'discord':
return platform.metadata.name
return platform.metadata.name || platform.name
case 'telegram':
return platform.metadata.chat?.name
return platform.metadata.chat?.title || platform.name
default:
return platform.name
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export interface ICommunityPlatfromProps {
isInProgress?: boolean;
isFetchingInitialData?: boolean;
chat?: {
name: string;
title: string;
id: string;
};
};
Expand Down

0 comments on commit 9a0b91c

Please sign in to comment.