From ad692c1a1a88c207f6f147c999277f598b0e81d2 Mon Sep 17 00:00:00 2001 From: AnhMTV Date: Fri, 26 Jul 2024 20:52:26 +0700 Subject: [PATCH] Fix max invite point --- packages/extension-koni-ui/src/Popup/Home/Invite/index.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/extension-koni-ui/src/Popup/Home/Invite/index.tsx b/packages/extension-koni-ui/src/Popup/Home/Invite/index.tsx index 61aa4c60b7..983d3a72d6 100644 --- a/packages/extension-koni-ui/src/Popup/Home/Invite/index.tsx +++ b/packages/extension-koni-ui/src/Popup/Home/Invite/index.tsx @@ -62,9 +62,7 @@ const Component = ({ className }: Props): React.ReactElement => { return 0; } - const rank = account.attributes?.rank || 'iron'; - - return rankPointMap[rank] || 0; + return rankPointMap.iron || 0; }, [account]); const inviteURL = useMemo(() => {