diff --git a/ui/app/hooks/useTransactionDisplayData.js b/ui/app/hooks/useTransactionDisplayData.js index f14088437..ea886205e 100644 --- a/ui/app/hooks/useTransactionDisplayData.js +++ b/ui/app/hooks/useTransactionDisplayData.js @@ -220,6 +220,10 @@ export function useTransactionDisplayData(transactionGroup) { category = TRANSACTION_GROUP_CATEGORIES.SEND; title = t('send'); subtitle = t('toAddress', [shortenAddress(recipientAddress)]); + } else { + throw new Error( + `useTransactionDisplayData does not recognize transaction type. Type received is: ${type}`, + ); } const primaryCurrencyPreferences = useUserPreferencedCurrency(PRIMARY);