[Tech Debt]: centralize logic to determine current page #3611
Labels
good first issue
Good for newcomers
low-prio
technical debt
This issue involves deferred engineering work
What is needed?
The Ambient app has a preponderance of code that runs only on certain pages (ie URL paths). This has led to a lot of local, repetitive logic to determine whether the user is (or is not) one of multiple pages which gatekeeps local logic.
The app should have one centralized method widely available to run these comparisons without logic duplication.
Example:
The text was updated successfully, but these errors were encountered: