From 25af975f8e847dfed9946d03203abb63db4d7596 Mon Sep 17 00:00:00 2001 From: 0xTranqui Date: Tue, 30 Apr 2024 05:30:09 -0400 Subject: [PATCH] sigh --- apps/site/components/client/ChannelSettings.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/site/components/client/ChannelSettings.tsx b/apps/site/components/client/ChannelSettings.tsx index d2b89f15..e8d4a0ff 100644 --- a/apps/site/components/client/ChannelSettings.tsx +++ b/apps/site/components/client/ChannelSettings.tsx @@ -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 } } @@ -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, })