Skip to content
This repository has been archived by the owner on Oct 27, 2023. It is now read-only.

Commit

Permalink
Hotfix 10032023 (#913)
Browse files Browse the repository at this point in the history
* fix reading of undefined
  • Loading branch information
vhcsilva authored Mar 10, 2023
1 parent 26f957f commit c9885f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pages/[network]/curators/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ export default function PageCouncil() {

return (
<CouncilLayout>
{types[type.toString()]
? types[type.toString()]
{types[type?.toString()]
? types[type?.toString()]
: types["ready-to-propose"]}
</CouncilLayout>
);
Expand Down
2 changes: 1 addition & 1 deletion pages/[network]/profile/pull-requests.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function PullRequests() {
<ListIssues
redirect={getURLWithNetwork("/bounties")}
buttonMessage={t('bounty:label_other')}
pullRequesterAddress={state.currentUser.walletAddress || null}
pullRequesterAddress={state.currentUser?.walletAddress || null}
pullRequesterLogin={state.currentUser?.login || null}
emptyMessage={String(t('errors.you-dont-have-pull-requests'))}
/>
Expand Down

0 comments on commit c9885f4

Please sign in to comment.