Skip to content

[$500] Web - Error message when adding the following snippet in consol #32391

Closed

Description

@lanitochka17

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 1.4.7-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:

Issue found when executing PR #32063

Action Performed:

  1. Go to URL https://staging.new.expensify.com/
  2. Login with any account
  3. Add the following snippet to the render function of Expensify.js
    useEffect(() => {
    let theme = 'dark';
    setInterval(() => {
    const newTheme = theme === 'dark' ? 'light' : 'dark';
    theme = newTheme;
    // eslint-disable-next-line rulesdir/prefer-actions-set-data
    Onyx.set(ONYXKEYS.PREFERRED_THEME, newTheme);
    }, 3000);
    }, []);

Expected Result:

No error message when adding the following snippet in consol

Actual Result:

Error message when adding the following snippet in consol

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

![Bug6298049_1701471148454!image__185_](https://github.com/Expensify/App/assets/78819774/c6874732-8748-46ea-99a3-05cdd2152de4)

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0199201fc753179511
  • Upwork Job ID: 1730730531051917312
  • Last Price Increase: 2023-12-01

Activity

  1. added
    ExternalAdded to denote the issue can be worked on by a contributor
    BugSomething is broken. Auto assigns a BugZero manager.
    on Dec 1, 2023
  2. changed the title [-] Web - Error message when adding the following snippet in consol[/-] [+][$500] Web - Error message when adding the following snippet in consol[/+] on Dec 1, 2023
  3. melvin-bot commented on Dec 1, 2023

    @melvin-bot
  4. melvin-bot commented on Dec 1, 2023

    @melvin-bot

    Triggered auto assignment to @muttmuure (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

  5. added
    Help WantedApply this label when an issue is open to proposals by contributors
    on Dec 1, 2023
  6. melvin-bot commented on Dec 1, 2023

    @melvin-bot

    Bug0 Triage Checklist (Main S/O)

    • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
    • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
      • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
    • This bug is reproducible using the reproduction steps in the OP. S/O
      • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
      • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
    • This issue is filled out as thoroughly and clearly as possible
      • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
    • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync
  7. melvin-bot commented on Dec 1, 2023

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @burczu (External)

  8. neonbhai commented on Dec 1, 2023

    @neonbhai
    Contributor

    The original testing steps ask the snippet to be added to the file Expensify.js. PR might not be testable on staging yet as no way to do this from console.

  9. grgia commented on Dec 2, 2023

    @grgia
    Contributor

    Not a bug, the code was not a console snippet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributors

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions