Skip to content

Commit

Permalink
change error text
Browse files Browse the repository at this point in the history
  • Loading branch information
AykhanAhmadli committed Nov 7, 2024
1 parent 1ab7b1b commit 0ceb60a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/telemed-intake/app/src/pages/VideoChatPage.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { FC, useState } from 'react';
import { Container, Typography, useTheme } from '@mui/material';
import { Container, Typography } from '@mui/material';
import { useSearchParams } from 'react-router-dom';
import { getSelectors } from 'ottehr-utils';
import { IntakeFlowPageRoute } from '../App';
Expand All @@ -17,8 +17,6 @@ const VideoChatPage: FC = () => {
const videoCallState = getSelectors(useVideoCallStore, ['meetingData']);
const meetingManager = useMeetingManager();

const theme = useTheme();

const [error, setError] = useState<Error | null>(null);

const apiClient = useZapEHRAPIClient();
Expand Down Expand Up @@ -49,7 +47,7 @@ const VideoChatPage: FC = () => {
if (error) {
return (
<CustomContainer useEmptyBody title="" bgVariant={IntakeFlowPageRoute.VideoCall.path}>
<Typography sx={{ color: theme.palette.error.main }} variant="h6">
<Typography sx={{ color: 'primary.contrast' }} variant="h6">
{error.message}
</Typography>
</CustomContainer>
Expand Down

0 comments on commit 0ceb60a

Please sign in to comment.