Skip to content

Commit

Permalink
Fix: crash issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Akalanka47000 committed Sep 15, 2024
1 parent 6433472 commit a037a52
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Race against time with automation" />
<meta property="og:title" content="Bashaway | 2023" />
<meta property="og:title" content="Bashaway | 2024" />
<meta property="og:description" content="Race against time with automation" />
<meta property="og:image" content="https://admin.bashaway.sliitfoss.org/assets/icons/favicon.svg" />
<meta property="og:image:width" content="64" />
Expand All @@ -25,7 +25,7 @@
<meta property="twitter:title" content="Bashaway Competitor Portal">
<meta property="twitter:description" content="Race against time with automation">
<meta property="twitter:card" content="summary_large_image">
<title>Bashaway | 2023</title>
<title>Bashaway | 2024</title>
</head>

<body>
Expand Down
2 changes: 2 additions & 0 deletions src/constants/index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
export * from "./hyperlinks";
export * from "./socials";

export const authorizedRoles = ["ADMIN", "SPECTATOR"];
2 changes: 1 addition & 1 deletion src/hooks/auth.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useEffect, useState } from "react";
import { useLocation, useNavigate } from "react-router-dom";
import { authorizedRoles } from "@/store/api/auth";
import { authorizedRoles } from "@/constants";
import { authUser } from "@/utils";

export const whitelistedPaths = ["login", "forgot-password", "reset-password"];
Expand Down
3 changes: 1 addition & 2 deletions src/store/api/auth.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { createApi } from "@reduxjs/toolkit/query/react";
import { authorizedRoles } from "@/constants";
import { toast } from "@sliit-foss/bashaway-ui";
import { default as baseQuery, mutationHelper } from "./base";

const { post } = mutationHelper;

export const authorizedRoles = ["ADMIN", "SPECTATOR"];

export const authApi = createApi({
reducerPath: "authApi",
baseQuery,
Expand Down

0 comments on commit a037a52

Please sign in to comment.