Skip to content

Commit

Permalink
Merge pull request #215 from johanbook/fix-ui-typo
Browse files Browse the repository at this point in the history
Fix typo in error message
  • Loading branch information
johanbook authored Jul 26, 2023
2 parents 3f8abbe + 55c8cb0 commit 87f757e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ build
coverage
dist
node_modules

config/console/logs
2 changes: 1 addition & 1 deletion services/web-ui/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const QUERY_CLIENT = new QueryClient({
queries: {
onError: (err) => {
const error = err as Error;
logger.error("Failed to execute mutation", {
logger.error("Failed to execute query", {
error: {
message: error.message,
stackTrace: error.stack,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function AuthenticationGuardContainer({
}: AuthenticationGuardContainerProps): React.ReactElement {
const { error, isLoading } = useQuery(
"authentication",
() => profileApi.checkIfFileExists(),
() => profileApi.checkIfProfileExists(),
{ retry: false }
);

Expand Down
2 changes: 1 addition & 1 deletion services/web-ui/src/pages/ChatPage/ChatPage.container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function ChatPageContainer(): React.ReactElement {
const { id } = useParams();

const { error, data, isLoading, refetch } = useQuery(`chat-${id}`, () =>
chatsApi.getChats({ profileId: id || "" })
chatsApi.getChats({ profileId: Number.parseInt(id || "") })
);

useHandleNotification({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function ProfileGuardContainer({
}: ProfileGuardContainerProps): React.ReactElement {
const { error, data, isLoading, refetch } = useQuery(
"currentProfileExists",
() => profileApi.checkIfFileExists()
() => profileApi.checkIfProfileExists()
);

if (error) {
Expand Down

0 comments on commit 87f757e

Please sign in to comment.