mirror of https://gitee.com/answerdev/answer.git
Merge branch 'feat/ui-0.5.0' into 'test'
fix: update use info is empty See merge request opensource/answer!307
This commit is contained in:
commit
dcaa7fe3b6
|
@ -118,7 +118,8 @@ const Index: FC<Props> = ({
|
|||
/>
|
||||
</Col>
|
||||
<Col lg={3} className="mb-3 mb-md-0">
|
||||
{data.update_user_info?.username !== data.user_info?.username ? (
|
||||
{data.update_user_info &&
|
||||
data.update_user_info?.username !== data.user_info?.username ? (
|
||||
<UserCard
|
||||
data={data?.update_user_info}
|
||||
time={Number(data.update_time)}
|
||||
|
|
|
@ -130,7 +130,8 @@ const Index: FC<Props> = ({ data, initPage, hasAnswer, isLogged }) => {
|
|||
/>
|
||||
</Col>
|
||||
<Col lg={3} className="mb-3 mb-md-0">
|
||||
{data.update_user_info?.username !== data.user_info?.username ? (
|
||||
{data.update_user_info &&
|
||||
data.update_user_info?.username !== data.user_info?.username ? (
|
||||
<UserCard
|
||||
data={data?.update_user_info}
|
||||
time={data.edit_time}
|
||||
|
|
Loading…
Reference in New Issue