Skip to content

Commit

Permalink
fix: check context.accountId
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotBraem committed Jan 3, 2024
1 parent 2c20f71 commit 217f5f5
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions apps/potlock/widget/Index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ const getTabWidget = (tab) => {
const defaultTabWidget = tabContentWidget[PROJECTS_LIST_TAB];
if (
[POTS_TAB, DEPLOY_POT_TAB, POT_DETAIL_TAB].includes(tab) &&
!props.QF_WHITELISTED_ACCOUNTS.includes(props.accountId)
!props.QF_WHITELISTED_ACCOUNTS.includes(context.accountId)
) {
// if user requests a QF-related tab but is not whitelisted, redirect to projects list
return defaultTabWidget;
Expand Down Expand Up @@ -256,7 +256,14 @@ const props = {
},
},
POT_FACTORY_CONTRACT_ID: "potfactory2.tests.potlock.near", // TODO: UPDATE WITH PROD FACTORY ID
QF_WHITELISTED_ACCOUNTS: ["lachlan.near", "potlock.near", "lachlanglen2.near", "plugrel.near", "efiz.near", "ntare.near"],
QF_WHITELISTED_ACCOUNTS: [
"lachlan.near",
"potlock.near",
"lachlanglen2.near",
"plugrel.near",
"efiz.near",
"ntare.near",
],
ToDo: styled.div`
position: relative;
Expand Down

0 comments on commit 217f5f5

Please sign in to comment.