Skip to content

Commit 0c1ce24

Browse files
OpenStaxClaudeclaude
authored andcommitted
Fix window.SETTINGS type assertion
Use double type assertion via unknown to properly convert Window type. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 2b8a40a commit 0c1ce24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/layouts/default/header/menus/main-menu/login-menu/login-menu-with-dropdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import useUserContext from '~/contexts/user';
44
import linkHelper from '~/helpers/link';
55
import Dropdown, {MenuItem} from '../dropdown/dropdown';
66

7-
const settings = (window as {SETTINGS: {accountHref: string}}).SETTINGS;
7+
const settings = (window as unknown as {SETTINGS: {accountHref: string}}).SETTINGS;
88
const reqFacultyAccessLink = `${settings.accountHref}/i/signup/educator/cs_form`;
99
const profileLink = `${settings.accountHref}/profile`;
1010

0 commit comments

Comments
 (0)