Skip to content

Commit

Permalink
sigh
Browse files Browse the repository at this point in the history
  • Loading branch information
0xTranqui committed Apr 30, 2024
1 parent ada87e3 commit 25af975
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/site/components/client/ChannelSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export function ChannelSettings({ channel }: ChannelSettingsProps) {
// to see if they have admin access for channel
for (let i = 0; i < channelRoleData.length; ++i) {
const rid = channelRoleData[i].rid
if (rid === userRid && channelRoleData[i].role > 1) {
if (rid === BigInt(userRid) && channelRoleData[i].role > 1) {
return true
}
}
Expand All @@ -74,7 +74,7 @@ export function ChannelSettings({ channel }: ChannelSettingsProps) {
!embeddedWallet?.address || !userId || !channel?.roles?.items
? false
: isAdmin({
userRid: userId,
userRid: BigInt(userId),
channelRoleData: channel.roles.items,
})

Expand Down

0 comments on commit 25af975

Please sign in to comment.