diff --git a/src/routes/stocks/[tickerID]/insider/congress-trading/+page.server.ts b/src/routes/stocks/[tickerID]/insider/congress-trading/+page.server.ts
index 5d81fa27..d98fa62d 100644
--- a/src/routes/stocks/[tickerID]/insider/congress-trading/+page.server.ts
+++ b/src/routes/stocks/[tickerID]/insider/congress-trading/+page.server.ts
@@ -1,6 +1,6 @@
export const load = async ({ locals, params }) => {
const getSenateTrading = async () => {
- const { apiURL, apiKey } = locals;
+ const { apiURL, apiKey, user} = locals;
const postData = {
ticker: params.tickerID,
@@ -16,7 +16,8 @@ export const load = async ({ locals, params }) => {
body: JSON.stringify(postData),
});
- const output = await response.json();
+ let output = await response.json();
+ output = user?.tier !== "Pro" ? output?.slice(0, 3) : output;
return output;
};
diff --git a/src/routes/stocks/[tickerID]/insider/congress-trading/+page.svelte b/src/routes/stocks/[tickerID]/insider/congress-trading/+page.svelte
index 48f0615c..4787543f 100644
--- a/src/routes/stocks/[tickerID]/insider/congress-trading/+page.svelte
+++ b/src/routes/stocks/[tickerID]/insider/congress-trading/+page.svelte
@@ -7,6 +7,7 @@
} from "$lib/store";
import { getPartyForPoliticians } from "$lib/utils";
import TableHeader from "$lib/components/Table/TableHeader.svelte";
+ import UpgradeToPro from "$lib/components/UpgradeToPro.svelte";
export let data;
@@ -377,9 +378,14 @@