Skip to content

Commit

Permalink
fix network id interpretation, and crash when in space.members
Browse files Browse the repository at this point in the history
  • Loading branch information
daywiss committed Nov 7, 2023
1 parent 080b9c3 commit d5e8d6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/plugins/oSnap/components/HandleOutcome/HandleOutcome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,9 @@ async function onExecuteProposal() {
}
const connectedToRightChain = computed(() => {
return getInstance().provider.value?.chainId === `0x${props.network}`;
return (
Number(getInstance().provider.value?.chainId) === Number(props.network)
);
});
const networkName = computed(() => {
Expand Down
2 changes: 1 addition & 1 deletion src/views/SpaceProposals.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const {
} = useProposals();
const spaceMembers = computed(() =>
props.space.members.length < 1
props.space.members?.length < 1
? ['none']
: [...props.space.members, ...props.space.moderators, ...props.space.admins]
);
Expand Down

0 comments on commit d5e8d6d

Please sign in to comment.