Skip to content

Commit

Permalink
only show custom broker
Browse files Browse the repository at this point in the history
  • Loading branch information
codemist committed Jan 13, 2025
1 parent 65ef7aa commit d58bdff
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,12 @@ export default async function DashboardPage({ params, searchParams }: Props) {
const qaToggles = await getQaToggleRow(profileId);
console.log({ qaToggles });
let showCustomBrokers = false;
let showRealBrokers = true;

if (qaToggles) {
showCustomBrokers = qaToggles.show_custom_brokers;
showRealBrokers = qaToggles.show_real_brokers;
}

const brokerData =
showCustomBrokers && !showRealBrokers ? mockScanResultsData : latestScan;
const brokerData = showCustomBrokers ? mockScanResultsData : latestScan;

const scanCount =
typeof profileId === "number"
Expand Down

0 comments on commit d58bdff

Please sign in to comment.