diff --git a/src/components/Combobox/context.ts b/src/components/Combobox/context.ts index 54d2a1e3..c64ea12a 100644 --- a/src/components/Combobox/context.ts +++ b/src/components/Combobox/context.ts @@ -23,9 +23,7 @@ export function useComboboxTextField() { const context = inject('combobox-textfield', undefined); if (!context) { - throw new Error( - 'No Combobox was provided. Your component must be wrapped in a component.', - ); + throw new Error('No Combobox was provided.'); } return context; diff --git a/src/use/useTheme.ts b/src/use/useTheme.ts index 2d448f1e..24162192 100644 --- a/src/use/useTheme.ts +++ b/src/use/useTheme.ts @@ -6,7 +6,7 @@ export default function useTheme() { if (!theme) { throw new Error( - 'No theme was provided. Your application must be wrapped in an component. See https://polaris.shopify.com/components/AppProvider for implementation instructions.', + 'No theme was provided.', ); } @@ -18,7 +18,7 @@ export function useThemeName() { if (!themeName || !themeName.value) { throw new Error( - 'No themeName was provided. Your application must be wrapped in an or component. See https://polaris.shopify.com/components/app-provider for implementation instructions.' + 'No themeName was provided.' ); }