Skip to content

Commit f38adf1

Browse files
committed
review: remove not yet used case ErrorCategory in rich error
1 parent 5dfc89d commit f38adf1

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/RichError.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { Trans, useTranslation } from "react-i18next";
99
import {
1010
ErrorIcon,
1111
HostIcon,
12-
OfflineIcon,
1312
PopOutIcon,
1413
} from "@vector-im/compound-design-tokens/assets/web/icons";
1514

@@ -85,10 +84,6 @@ const GenericECError: FC<{ error: ElementCallError }> = ({
8584
title = t("error.call_is_not_supported");
8685
icon = HostIcon;
8786
break;
88-
case ErrorCategory.NETWORK_CONNECTIVITY:
89-
title = t("error.connection_lost");
90-
icon = OfflineIcon;
91-
break;
9287
default:
9388
title = t("error.generic");
9489
icon = ErrorIcon;

0 commit comments

Comments
 (0)