Open lanitochka17 opened 2 hours ago
Triggered auto assignment to @JmillsExpensify (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.
Triggered auto assignment to @tylerkaraszewski (DeployBlockerCash
), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.
💬 A slack conversation has been started in #expensify-open-source
:wave: 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:
We think that this bug might be related to #wave-collect - Release 2
Edited by proposal-police: This proposal was edited at 2024-11-01 15:22:42 UTC.
Bank name persists between different banks in the Other card feed.
After we click next the bank name is saved then we are setting the default value of the bank name here https://github.com/Expensify/App/blob/bfce2771d22cbecceee6cf3c064fe3f0627eb5d8/src/pages/workspace/companyCards/addNew/CardNameStep.tsx#L68
We should reset the value of the bank name when navigating back.
CompanyCards.setAddNewCompanyCardStepAndData({
data: {
bankName: '',
},
isEditing: false,
});
Bank name persists between different banks in the Other card feed
When the user enters the name of the card, it is stored in Onyx.
https://github.com/Expensify/App/blob/bfce2771d22cbecceee6cf3c064fe3f0627eb5d8/src/pages/workspace/companyCards/addNew/CardNameStep.tsx#L33
However, when we go back and select another card type, only the feedType
is changed, while the name remains unchanged.
https://github.com/Expensify/App/blob/bfce2771d22cbecceee6cf3c064fe3f0627eb5d8/src/pages/workspace/companyCards/addNew/CardTypeStep.tsx#L100-L104
We should also reset the name when the user selects a different card type. By implementing this, we preserve the name if the user selects the same card type while ensuring that the name is set to null if a different card type is chosen.
data: {
feedType: typeSelected,
...(typeSelected !== addNewCard?.data.feedType && { bankName: null })
},
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: 9.0.56-2 Reproducible in staging?: Y Reproducible in production?: N If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: N/A Issue reported by: Applause - Internal Team
Issue found when executing PR https://github.com/Expensify/App/pull/51569
Action Performed:
Expected Result:
Bank name should be cleared when choosing a different bank
Actual Result:
Bank name persists between different banks in the "Other" card feed
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
https://github.com/user-attachments/assets/95657f08-25c7-4616-9413-7f8570b65f13
View all open jobs on GitHub