diff options
Diffstat (limited to 'packages/taler-wallet-webextension/src/components')
-rw-r--r-- | packages/taler-wallet-webextension/src/components/AmountField.stories.tsx | 1 | ||||
-rw-r--r-- | packages/taler-wallet-webextension/src/components/TransactionItem.tsx | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/packages/taler-wallet-webextension/src/components/AmountField.stories.tsx b/packages/taler-wallet-webextension/src/components/AmountField.stories.tsx index 3183364a8..ff9a71992 100644 --- a/packages/taler-wallet-webextension/src/components/AmountField.stories.tsx +++ b/packages/taler-wallet-webextension/src/components/AmountField.stories.tsx @@ -50,7 +50,6 @@ function RenderAmount(): VNode { <AmountField required label={<i18n.Translate>Amount</i18n.Translate>} - currency="USD" highestDenom={2000000} lowestDenom={0.01} handler={handler} diff --git a/packages/taler-wallet-webextension/src/components/TransactionItem.tsx b/packages/taler-wallet-webextension/src/components/TransactionItem.tsx index f8b23081d..c2c4b52e3 100644 --- a/packages/taler-wallet-webextension/src/components/TransactionItem.tsx +++ b/packages/taler-wallet-webextension/src/components/TransactionItem.tsx @@ -27,6 +27,7 @@ import { h, VNode } from "preact"; import { useTranslationContext } from "../context/translation.js"; import { Avatar } from "../mui/Avatar.js"; import { Pages } from "../NavigationBar.js"; +import { assertUnreachable } from "../utils/index.js"; import { Column, ExtraLargeText, @@ -175,8 +176,7 @@ export function TransactionItem(props: { tx: Transaction }): VNode { /> ); default: { - const pe: never = tx; - throw Error(`unsupported transaction type ${pe}`); + assertUnreachable(tx); } } } |