refactor(widgets): update shouldInject logic for skills and tastes pages

This commit is contained in:
Fatih Kadir Akın
2026-03-02 23:25:35 +03:00
parent 0764fef26b
commit 1f4816199d
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -161,8 +161,8 @@ export const bookWidget: WidgetPlugin = {
maxCount: 4,
},
shouldInject: (context) => {
// Don't inject on the skills page
if (context.filters?.type === "SKILL") {
// Don't inject on the skills or tastes pages
if (context.filters?.type === "SKILL" || context.filters?.type === "TASTE") {
return false;
}
return true;
+2 -2
View File
@@ -57,8 +57,8 @@ Provide your review in a clear, actionable format with specific line references
shouldInject: (context) => {
const { filters } = context;
// Don't inject on the skills page
if (filters?.type === "SKILL") {
// Don't inject on the skills or tastes pages
if (filters?.type === "SKILL" || filters?.type === "TASTE") {
return false;
}
+2 -2
View File
@@ -122,8 +122,8 @@ export const textreamWidget: WidgetPlugin = {
shouldInject: (context) => {
const { filters } = context;
// Don't inject on the skills page
if (filters?.type === "SKILL") {
// Don't inject on the skills or tastes pages
if (filters?.type === "SKILL" || filters?.type === "TASTE") {
return false;
}