Skip to content

[Awaiting payment][$125] Web - Workspace - Console error shows up when clicking Share button #40086

Closed

Description

@izarutskaya

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.62-0
Reproducible in staging?: Y
Reproducible in production?: N
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to Profile > Workspaces > any workspace.
  3. Go to Profile.
  4. Click Share.

Expected Result:

No console error will show up.

Actual Result:

Console error shows up.

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

Bug6445447_1712813581910.bandicam_2024-04-11_13-30-47-374.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01e680ef6d1ff9d76b
  • Upwork Job ID: 1782410601436565504
  • Last Price Increase: 2024-04-22
  • Automatic offers:
    • shubham1206agra | Reviewer | 0
    • tienifr | Contributor | 0
Issue OwnerCurrent Issue Owner: @johncschuster

Activity

  1. added
    DeployBlockerCashThis issue or pull request should block deployment
    BugSomething is broken. Auto assigns a BugZero manager.
    on Apr 11, 2024
  2. melvin-bot commented on Apr 11, 2024

    @melvin-bot

    Triggered auto assignment to @johncschuster (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

  3. melvin-bot commented on Apr 11, 2024

    @melvin-bot

    Triggered auto assignment to @pecanoro (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

  4. github-actions commented on Apr 11, 2024

    @github-actions
    Contributor

    👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  5. izarutskaya commented on Apr 11, 2024

    @izarutskaya
    Author

    @johncschuster I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors.

  6. izarutskaya commented on Apr 11, 2024

    @izarutskaya
    Author

    We think this issue might be related to the #collect project.

  7. izarutskaya commented on Apr 11, 2024

    @izarutskaya
    Author

    Production

    bandicam.2024-04-11.10-54-53-331.mp4
  8. tienifr commented on Apr 11, 2024

    @tienifr
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    Console error shows up.

    What is the root cause of that problem?

    We're setting qrCodeSize with default value is 0

    const [qrCodeSize, setQrCodeSize] = useState(0);

    that cause the logoSize is 0

    logoSize={size * logoRatio}

    If the logoSize is 0, the logoBackgroundBorderRadius will be NaN here

    What changes do you think we should make in order to solve the problem?

    We should set the default value of qrCodeSize is undefined here, so the size will be set to 120

    function QRCode({url, logo, getRef, size = 120, color, backgroundColor, logoRatio = CONST.QR.DEFAULT_LOGO_SIZE_RATIO, logoMarginRatio = CONST.QR.DEFAULT_LOGO_MARGIN_RATIO}: QRCodeProps) {

    What alternative solutions did you explore? (Optional)

    in QRCode:

    Solution 1: Return null if size is 0

    Solution 2: We can consider to fallback the size to 120 if it's 0

    Solution 3: Update this line to logoSize={(size * logoRatio) || 1}

    Result

    web-resize.mp4
  9. 47 remaining items

  10. changed the title [-][$125] Web - Workspace - Console error shows up when clicking Share button[/-] [+][Awaiting payment][$125] Web - Workspace - Console error shows up when clicking Share button[/+] on May 20, 2024
  11. johncschuster commented on May 21, 2024

    @johncschuster
    Contributor

    Looking now

  12. johncschuster commented on May 21, 2024

    @johncschuster
    Contributor

    @shubham1206agra it looks like you haven't accepted the invite to the job on Upwork. Can you please accept that?

  13. johncschuster commented on May 21, 2024

    @johncschuster
    Contributor

    I've issued payment to @tienifr 🎉

  14. shubham1206agra commented on May 22, 2024

    @shubham1206agra
    Contributor

    @johncschuster Offer accepted

  15. johncschuster commented on May 28, 2024

    @johncschuster
    Contributor

    Payment has been issued to @shubham1206agra. Thanks for your contributions!

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

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributor

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions