diff --git a/packages/twenty-shared/src/utils/filter/utils/isMatchingCurrencyFilter.ts b/packages/twenty-shared/src/utils/filter/utils/isMatchingCurrencyFilter.ts index f3f6bab13db..95e35357777 100644 --- a/packages/twenty-shared/src/utils/filter/utils/isMatchingCurrencyFilter.ts +++ b/packages/twenty-shared/src/utils/filter/utils/isMatchingCurrencyFilter.ts @@ -72,11 +72,18 @@ export const isMatchingCurrencyFilter = ({ value, }: { currencyFilter: CurrencyFilter; - value: { - amountMicros?: number | null; - currencyCode?: string | null; - }; + value: + | { + amountMicros?: number | null; + currencyCode?: string | null; + } + | null + | undefined; }) => { + if (!isDefined(value)) { + return false; + } + const shouldMatchCurrencyCodeFilter = isDefined(currencyFilter.currencyCode); const shouldMatchAmountMicrosFilter = isDefined(currencyFilter.amountMicros);