refactor(widgets): update shouldInject logic for skills and tastes pages
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user