Skip to content

Switched SCEvents token reading to useSCE hook#2140

Merged
maernest04 merged 1 commit into
devfrom
ernest_ma/call_useSCE_for_SCEvents
May 4, 2026
Merged

Switched SCEvents token reading to useSCE hook#2140
maernest04 merged 1 commit into
devfrom
ernest_ma/call_useSCE_for_SCEvents

Conversation

@maernest04
Copy link
Copy Markdown
Collaborator

PR for #2133

Problem

Before, SCEvent files in Clark were reading a user's token from local storage. However, Clark already has a built in useSCE() hook to get information about a user.

Solution

Go through each SCEvents file in clark that would access a user's token and switch it over to use useSCE().

Copy link
Copy Markdown
Collaborator

@KhoaNguyen706 KhoaNguyen706 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@maernest04 maernest04 merged commit f7956b1 into dev May 4, 2026
4 checks passed
@maernest04 maernest04 deleted the ernest_ma/call_useSCE_for_SCEvents branch May 4, 2026 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants