diff --git a/client/src/components/vendor-search-select/vendor-search-select.component.jsx b/client/src/components/vendor-search-select/vendor-search-select.component.jsx index a190d08a5..dbc588137 100644 --- a/client/src/components/vendor-search-select/vendor-search-select.component.jsx +++ b/client/src/components/vendor-search-select/vendor-search-select.component.jsx @@ -36,9 +36,8 @@ const VendorSearchSelect = ( width: '100%', }} labelRender={({ label, value, ...rest }) => { - console.log(value, label, rest); - if (!value) return label; - const discount = options.find((o) => o.id === value)?.discount; + if (!value || !options) return label; + const discount = options?.find((o) => o.id === value)?.discount; return (
{label}