Skip to content

Commit

Permalink
remove debug flag
Browse files Browse the repository at this point in the history
  • Loading branch information
onnovisser committed Nov 29, 2023
1 parent 83289b7 commit e20f355
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 22 deletions.
5 changes: 0 additions & 5 deletions centrifuge-app/src/components/DebugFlags/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export type Key =
| 'showPortfolio'
| 'showTestNets'
| 'showSwaps'
| 'showLiquidityPoolsOptions'
| 'showPrime'
| 'poolCreationType'
| 'podAdminSeed'
Expand Down Expand Up @@ -100,10 +99,6 @@ export const flagsConfig: Record<Key, DebugFlagConfig> = {
type: 'checkbox',
default: false,
},
showLiquidityPoolsOptions: {
type: 'checkbox',
default: false,
},
poolReporting: {
type: 'checkbox',
default: false,
Expand Down
30 changes: 13 additions & 17 deletions centrifuge-app/src/pages/IssuerPool/Investors/InvestorStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import { isAddress } from '@polkadot/util-crypto'
import React from 'react'
import { useParams } from 'react-router'
import { DataTable } from '../../../components/DataTable'
import { useDebugFlags } from '../../../components/DebugFlags'
import { PageSection } from '../../../components/PageSection'
import { usePermissions, useSuitableAccounts } from '../../../utils/usePermissions'
import { useOrder, usePool } from '../../../utils/usePools'
Expand All @@ -47,7 +46,6 @@ export function InvestorStatus() {
const permissions = usePermissions(centAddress)

const [pendingTrancheId, setPendingTrancheId] = React.useState('')
const { showLiquidityPoolsOptions } = useDebugFlags()

const [account] = useSuitableAccounts({ poolId, poolRole: ['InvestorAdmin'] })

Expand Down Expand Up @@ -94,21 +92,19 @@ export function InvestorStatus() {
placeholder="Enter address..."
clear={() => setAddress('')}
/>
{showLiquidityPoolsOptions && (
<Select
value={chain}
options={[
{ value: '', label: 'Centrifuge' },
...Object.keys(chains).map((chainId) => ({
value: chainId,
label: `${chainId} - ${getChainInfo(chains, Number(chainId)).name}`,
})),
]}
onChange={(e) => {
setChain(e.target.value as any)
}}
/>
)}
<Select
value={chain}
options={[
{ value: '', label: 'Centrifuge' },
...Object.keys(chains).map((chainId) => ({
value: chainId,
label: `${chainId} - ${getChainInfo(chains, Number(chainId)).name}`,
})),
]}
onChange={(e) => {
setChain(e.target.value as any)
}}
/>
{address && !validAddress ? (
<Text variant="label2" color="statusCritical">
<Shelf gap={1}>
Expand Down

0 comments on commit e20f355

Please sign in to comment.