Skip to content

Commit

Permalink
fix: use || instead of ??
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Apr 9, 2023
1 parent 94c2f41 commit a9fb43b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/src/components/ScoreboardItemModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const ScoreboardItemModal: FC<ScoreboardItemModalProps> = (props) => {
)}
</Group>
<Text size="sm" lineClamp={1}>
{item?.bio ?? '这只队伍很懒,什么都没留下'}
{item?.bio || '这只队伍很懒,什么都没留下'}
</Text>
</Stack>
</Group>
Expand Down

0 comments on commit a9fb43b

Please sign in to comment.