Skip to content

Commit

Permalink
fix: proposer in detail proposal
Browse files Browse the repository at this point in the history
  • Loading branch information
ninhxuanhuan committed Nov 15, 2024
1 parent 727783e commit bf78e64
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/containers/ProposalsDetail/ProposalsDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ export default function(props) {
const proposal = result.proposal;
if(!!proposal){
const type = proposal.content['@type'];
const title = proposal.content?.title;
const proposer = proposal.content?.authority;
const title = proposal.content?.title || proposal.content?.authority;
const deposit_end_time = proposal.deposit_end_time;
const description = proposal.content?.description;
const voting_start = proposal.voting_start_time;
Expand All @@ -78,7 +77,6 @@ export default function(props) {
status,
total_deposit,
proposal_id,
proposer
});
}
}
Expand Down

0 comments on commit bf78e64

Please sign in to comment.