Skip to content

Commit

Permalink
debug collator's judgment
Browse files Browse the repository at this point in the history
  • Loading branch information
JayJay1024 committed Aug 14, 2023
1 parent 64c4420 commit d41f934
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/header/user.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ export default function User() {
const { disconnect } = useDisconnect();
const { openConnectModal } = useConnectModal();

const isCollator = address && collatorCommission[address] ? true : false;
const isCollator =
address && Object.keys(collatorCommission).some((addr) => addr.toLowerCase() === address.toLowerCase())
? true
: false;

return address ? (
<>
Expand Down

0 comments on commit d41f934

Please sign in to comment.