Skip to content

Commit

Permalink
fix: sonarcloud errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Jadapema committed Jan 22, 2025
1 parent 1a9de20 commit 28953cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ interface AccountPopoverButtonProps {
export function AccountPopoverButton({
popover,
onOpenLoginModal,
}: AccountPopoverButtonProps) {
}: Readonly<AccountPopoverButtonProps>) {
const sessionData = useSelector((state: any) => state.auth.session);
const isAuthenticated = Boolean(sessionData?.authenticated);
const isUpdatingMetadata: boolean = useSelector((state: any) => state.auth.isUpdatingMetadata);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const OPTIONS = [
* - Profile link(s)
* - Logout
*/
export function AccountPopoverMenu({ popover, router }: AccountPopoverMenuProps) {
export function AccountPopoverMenu({ popover, router }: Readonly<AccountPopoverMenuProps>) {
const sessionData = useSelector((state: any) => state.auth.session);
const isAuthenticated = Boolean(sessionData?.authenticated);
// Redux states: login modal open and session loading status
Expand Down

0 comments on commit 28953cb

Please sign in to comment.