Skip to content

Fix empty "Upload Additional Documents" page in NonUSD owner flow - #91289

Merged
youssef-lr merged 2 commits into
Expensify:mainfrom
yusufdeveloper2903:yusufdeveloper2903/fix-90505-empty-documents-page
Jun 19, 2026
Merged

youssef-lr merged 2 commits into
Expensify:mainfrom
yusufdeveloper2903:yusufdeveloper2903/fix-90505-empty-documents-page

Conversation

@yusufdeveloper2903

Copy link
Copy Markdown
Contributor

Explanation of Change

In the NonUSD (Corpay) bank account flow, the beneficial owner "Upload Additional Documents" sub-step could appear with no required upload fields, no requirements, and the user could skip it without entering anything.

The Documents page renders only four upload sections, each gated by getNeededDocumentsStatusForBeneficialOwner(currency, country, nationality). For workspace currency GBP, bank country GB, owner nationality GB, all four flags collapse to false, so the page shows only a heading and two paragraphs — an empty page.

The parent (BeneficialOwnerDetailsFormPages.tsx) was supposed to skip that page, but its skip rule was a narrow hardcoded country === GB && nationality === GB check that (1) did not match the actual render predicate, so the two could drift apart, and (2) read the bank country from the form draft only. When the country lives only in achData (e.g. after server hydration of the reimbursement account, where CountryFullStep does not re-write the draft because the value already equals the default), the draft value is '', the GB && GB clause is false, the page is not skipped, and the empty page renders.

This change derives the skip predicate from the same getNeededDocumentsStatusForBeneficialOwner function that drives the page's render, and reads country/currency through the same getCurrencyForNonUSDBankAccount helper already used by Documents.tsx and Confirmation.tsx (which falls back to achData.country). The Documents sub-step is now skipped exactly when all four document flags are false — i.e. exactly when the page would be empty — so "page is skipped" and "page is empty" can no longer diverge. This resolves the reported GBP/UK/UK case and is future-proof for any other combination where no documents are required.

Fixed Issues

$ #90505
PROPOSAL: #90505 (comment)

Tests

  1. Open or create a workspace whose output currency is non-USD and requires Corpay, e.g. GBP.
  2. Go to Workspace settings → Workflows → Connect bank account to start the NonUSD (Corpay) Add bank account flow.
  3. In the country step, select United Kingdom (GB) as the bank account country, and continue through the business-info steps to the Owner info step.
  4. Add/enter a beneficial owner with Nationality = United Kingdom (GB) and a US address, then continue through the owner sub-steps (Name → Nationality → Ownership % → Date of birth → Address).
  5. Tap Next on the Address sub-step and verify the flow goes straight to the Confirmation step — the empty "Upload Additional Documents" page is not shown.
  6. Regression check: repeat with a beneficial owner whose Nationality is not GB (e.g. France), or with a workspace currency of EUR / AUD / CAD, and verify the "Upload Additional Documents" page is shown with the correct required upload field(s).
  7. Back navigation: from Confirmation, press Back and verify it skips the hidden Documents step and lands on the previous visible step.
  • Verify that no errors appear in the JS console

Offline tests

This change adds no API calls. The skip decision is computed purely from locally available Onyx data (reimbursementAccountDraft, reimbursementAccount.achData, and policy.outputCurrency), so it behaves identically online and offline.

  1. Turn off the network connection.
  2. Run the steps above for the GBP/UK/UK case.
  3. Verify the empty "Upload Additional Documents" page is not shown, exactly as when online.

QA Steps

Same as the Tests section above (run on staging).

  • Verify that no errors appear in the JS console

PR Author Checklist

  • I linked the correct issue in the ### Fixed Issues section above
  • I wrote clear testing steps that cover the changes made in this PR
    • I added steps for local testing in the Tests section
    • I added steps for the expected offline behavior in the Offline steps section
    • I added steps for Staging and/or Production testing in the QA steps section
    • I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
    • I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).
  • I included screenshots or videos for tests on all platforms
  • I ran the tests on all platforms & verified they passed on:
    • Android: Native
    • Android: mWeb Chrome
    • iOS: Native
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
  • I followed proper code patterns (see Reviewing the code)
    • I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
      • If any non-english text was added/modified, I used JaimeGPT to get English > Spanish translation. I then posted it in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:
    • I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
    • I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
    • I verified the JSDocs style guidelines (in STYLE.md) were followed
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I followed the guidelines as stated in the Review Guidelines
  • I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
  • I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
  • I verified any variables that can be defined as constants (ie. in CONST.ts or at the top of the file that uses the constant) are defined as such
  • I verified that if a function's arguments changed that all usages have also been updated correctly
  • If any new file was added I verified that:
    • The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))
  • If new assets were added or existing ones were modified, I verified that:
    • The assets are optimized and compressed (for SVG files, run npm run compress-svg)
    • The assets load correctly across all supported platforms.
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
  • I added unit tests for any new feature or bug fix in this PR to help automatically prevent regressions in this user flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

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

After Fix:
evidence_fix_after

evidence_02_fix_confirmation

Before Fix:
evidence_bug_before

evidence_03_bug_empty_documents

Comparison:
evidence_comparison

@yusufdeveloper2903
yusufdeveloper2903 requested review from a team as code owners May 21, 2026 10:40
@melvin-bot
melvin-bot Bot requested review from abzokhattab and heyjennahay and removed request for a team May 21, 2026 10:40
@melvin-bot

melvin-bot Bot commented May 21, 2026

Copy link
Copy Markdown

@abzokhattab Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

@melvin-bot
melvin-bot Bot requested review from a team and youssef-lr and removed request for a team May 21, 2026 10:40
@melvin-bot

melvin-bot Bot commented May 21, 2026

Copy link
Copy Markdown

@youssef-lr Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

function BeneficialOwnerDetailsFormPages({stepNames, policyID, onFinished, backTo}: BeneficialOwnerDetailsFormPagesProps) {
const {translate} = useLocalize();
const [reimbursementAccountDraft] = useOnyx(ONYXKEYS.FORMS.REIMBURSEMENT_ACCOUNT_FORM_DRAFT);
const [reimbursementAccount] = useOnyx(ONYXKEYS.REIMBURSEMENT_ACCOUNT);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

❌ PERF-11 (docs)

useOnyx(ONYXKEYS.REIMBURSEMENT_ACCOUNT) subscribes to the entire reimbursement account object, but only achData.country is used (via getCurrencyForNonUSDBankAccount). This causes unnecessary re-renders when any unrelated field on the reimbursement account changes.

Use a selector to extract only the needed field:

const [reimbursementAccountCountry] = useOnyx(ONYXKEYS.REIMBURSEMENT_ACCOUNT, {
    selector: (ra) => ra?.achData?.additionalData?.country,
});

Then pass the extracted value directly instead of the full object, or restructure getCurrencyForNonUSDBankAccount to accept the primitive values it actually needs.


Reviewed at: 16e329e | Please rate this suggestion with 👍 or 👎 to help us improve! Reactions are used to monitor reviewer efficiency.

const {translate} = useLocalize();
const [reimbursementAccountDraft] = useOnyx(ONYXKEYS.FORMS.REIMBURSEMENT_ACCOUNT_FORM_DRAFT);
const [reimbursementAccount] = useOnyx(ONYXKEYS.REIMBURSEMENT_ACCOUNT);
const [policy] = useOnyx(`${ONYXKEYS.COLLECTION.POLICY}${policyID}`);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

❌ PERF-11 (docs)

useOnyx(ONYXKEYS.COLLECTION.POLICY + policyID) subscribes to the entire policy object, but only outputCurrency is used (via getCurrencyForNonUSDBankAccount). Policy objects are large and change frequently, causing unnecessary re-renders.

Use a selector to extract only the needed field:

const [outputCurrency] = useOnyx(`${ONYXKEYS.COLLECTION.POLICY}${policyID}`, {
    selector: (p) => p?.outputCurrency,
});

Then pass the extracted primitive value directly instead of the full policy object.


Reviewed at: 16e329e | Please rate this suggestion with 👍 or 👎 to help us improve! Reactions are used to monitor reviewer efficiency.

@yusufdeveloper2903

Copy link
Copy Markdown
Contributor Author

Valid principle (PERF-11), but the suggested path is wrong — country is at achData.country
not achData.additionalData.country, so applying it verbatim would break the skip logic. Also, this matches the pattern used by all 12 callers of getCurrencyForNonUSDBankAccount; optimizing it properly means refactoring the shared helper + all call sites, which is out of scope here

@yusufdeveloper2903

Copy link
Copy Markdown
Contributor Author

Hi @abzokhattab 👋 this PR is ready for review (all platforms tested, screenshots + unit test added). Could you take a look when you get a chance? Thanks! 🙏

@abzokhattab

Copy link
Copy Markdown
Contributor

@MelvinBot, review the PR and find other issues or regressions

@abzokhattab

Copy link
Copy Markdown
Contributor

@codex review

@abzokhattab

Copy link
Copy Markdown
Contributor

Can you please check the Ai generated comments here #91289 (comment) and here #91289 (comment)

@MelvinBot

Copy link
Copy Markdown
Contributor

PR Review

The core logic change is correct — replacing the hardcoded country === GB && nationality === GB skip check with the same getNeededDocumentsStatusForBeneficialOwner() function that Documents.tsx uses to decide what to render. This ensures "page is skipped" and "page is empty" can never diverge. The country source fix (falling back to achData via getCurrencyForNonUSDBankAccount) also correctly matches what Documents.tsx and Confirmation.tsx already do.

One issue found:

The automated reviewer flagged PERF-11 on the two new useOnyx hooks — subscribing to the full REIMBURSEMENT_ACCOUNT and POLICY objects when only achData.country and outputCurrency are needed. While I note that Documents.tsx and Confirmation.tsx have the same pattern today, those are leaf components that re-render in a narrower scope. BeneficialOwnerDetailsFormPages is a parent orchestrator — unnecessary re-renders here cascade to all its children (the sub-step pages, useSubPage hook, route builders, etc.). The PERF-11 feedback is worth addressing here, especially for the policy object which can be large.

A lightweight fix that avoids refactoring getCurrencyForNonUSDBankAccount:

const [reimbursementAccountCountry] = useOnyx(ONYXKEYS.REIMBURSEMENT_ACCOUNT, {
    selector: (ra) => ra?.achData?.additionalData?.country,
});
const [outputCurrency] = useOnyx(`${ONYXKEYS.COLLECTION.POLICY}${policyID}`, {
    selector: (p) => p?.outputCurrency,
});

Then inline the getCurrencyForNonUSDBankAccount logic using the extracted primitives + reimbursementAccountDraft, since the draft is already subscribed.

No other regressions found. The skip predicate correctly checks all four document flags, the useMemo dependency array is complete (beneficialOwnerNationality, countryStepCountryValue, currency), and the INPUT_IDS import removal is safe (it was only used for the country field that's now read via getCurrencyForNonUSDBankAccount).

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@abzokhattab

Copy link
Copy Markdown
Contributor

@yusufdeveloper2903

Could you guide me through the reproduce steps? a video would be helpful

Currently, I have a backend error on the Corpay UpdateCorpayOnboardingAdditionalData when reproducing .. could you please provide a video

Screen.Recording.2026-05-25.at.00.28.48.mov
Screenshot 2026-05-25 at 00 26 55

@yusufdeveloper2903

Copy link
Copy Markdown
Contributor Author

@abzokhattab
Added the recording , Let me know if anything else is needed.

After-fix.mp4

@abzokhattab

Copy link
Copy Markdown
Contributor

Well i tested it on staging and i see thats already the existing behavior on staging too

trim.A8C9C6D8-26BF-447C-B237-BED6B61F6BDE.MOV

Can you please check which conditions produce the bug

@yusufdeveloper2903

yusufdeveloper2903 commented May 25, 2026 •

Copy link
Copy Markdown
Contributor Author

@abzokhattab

Reproducible ✅

This is a real, reproducible bug. It's still marked Needs Reproduction only because the literal steps in the OP no longer trigger it on main — but the underlying defect is very much present. Full breakdown + video below.

Before-fix.mp4

The Beneficial Owner "Upload additional documentation" page renders with no upload fields and can be skipped via Next. The page's skip logic and its render logic read the bank country from two different places, so they disagree and the empty page slips through.

Why the OP's literal steps don't reproduce

For a GBP workspace the bank country is forced to GB, and with owner nationality GB all document flags are false. The parent already skips the page for exactly that case — country === 'GB' && nationality === 'GB' (BeneficialOwnerDetailsFormPages.tsx#L84-L86). So a clean single-pass setup is skipped correctly — which is why it looks non-reproducible.

The actual trigger (what the video shows)

The skip predicate and the render predicate read the bank country differently, so they drift apart:

Reads country from Source
Skip form draft only BeneficialOwnerDetailsFormPages.tsx#L70 → draft?.[COUNTRY] ?? ''
Render draft or achData getCurrencyForNonUSDBankAccount.ts#L14 → draft.country ?? achData.country ?? ''

When the country lives in achData but not in the draft — e.g. a resumed / server-hydrated setup, where CountryFullStep.tsx#L93 does not re-write the draft because the selected value already equals the default — the two predicates disagree:

→ The page is shown with only its heading + two paragraphs, no upload sections, and Next lets you skip it. Exactly the OP screenshot.

Steps to reproduce

  1. GBP workspace → Workflows → start connecting a non-USD bank account.
  2. Confirm currency/country (GBP / United Kingdom) and continue creating the bank account — the bank country is persisted server-side into achData.
  3. Leave the flow, then resume it via Continue setup on a fresh client state (the local draft has no country, while achData.country is GB).
  4. Proceed to Beneficial owner → enter an owner with nationality United Kingdom.
  5. ➡️ The "Upload additional documentation" page renders empty and can be skipped.
Deterministic local repro (no backend needed — paste in DevTools console, then open the link)
(async () => {
  const POLICY_ID = 'BUGREPRO90505GBP';
  await window.Onyx.merge('policy_' + POLICY_ID, { id: POLICY_ID, name: '#90505 Repro (GBP)', type: 'corporate', role: 'admin', outputCurrency: 'GBP' });
  await window.Onyx.set('reimbursementAccount', { achData: { policyID: POLICY_ID, bankAccountID: 90505, country: 'GB', currency: 'GBP', state: 'SETUP', corpay: { companyName: '#90505 Repro Ltd' } }, isLoading: false, errors: null });
  await window.Onyx.set('reimbursementAccountDraft', { currency: 'GBP', ownerBeingModifiedID: 'currentUser', beneficialOwnerKeys: ['currentUser'], ownsMoreThan25Percent: true, beneficialOwner_currentUser_firstName: 'Yusuf', beneficialOwner_currentUser_lastName: 'Yuldashev', beneficialOwner_currentUser_nationality: 'GB', beneficialOwner_currentUser_ownershipPercentage: '100', beneficialOwner_currentUser_dob: '1990-01-01', beneficialOwner_currentUser_street: '123 Test St', beneficialOwner_currentUser_city: 'Guliston', beneficialOwner_currentUser_state: 'CA', beneficialOwner_currentUser_zipCode: '2222', beneficialOwner_currentUser_country: 'US' });
  console.log('Seeded. Open: /bank-account/new/global/beneficial-owner-info/documents?policyID=' + POLICY_ID);
})();

This reproduces the exact draft-empty / achData-populated state, with no country in the draft.

Root cause (one line)

The skip rule is a narrow hardcoded GB && GB check on draft-only country, which can disagree with the render's draft ?? achData country — so the page is shown empty instead of skipped.

Fix

#91289 aligns the skip with the render: it skips the page whenever the document-status flags are all false, reading the country the same way the page does — so the two predicates can never drift.

@yusufdeveloper2903

Copy link
Copy Markdown
Contributor Author

Hi @abzokhattab , could you take another look when you get a chance? Repro details + video are in the breakdown above.
Thanks!

@codecov

codecov Bot commented Jun 1, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ Changes either increased or maintained existing code coverage, great job!

Files with missing lines Coverage Δ
...icialOwnerInfo/BeneficialOwnerDetailsFormPages.tsx 0.00% <0.00%> (ø)
... and 8 files with indirect coverage changes

@yusufdeveloper2903

Copy link
Copy Markdown
Contributor Author

Hi @abzokhattab @youssef-lr 👋

Friendly bump — this PR has been ready for review since May 24 and I haven't heard back since May 28.

Just to re-confirm the earlier concern: the bug is real and reproducible. The reason the OP's literal steps look like "existing behavior on staging" is that for a GBP workspace the parent already skips the page for the exact country === 'GB' && nationality === 'GB' case. The actual defect is a two-sources-of-truth divergence — the skip predicate reads bank country from the form draft only, while the render predicate reads it from the draft or achData. When country lives only in achData, the two disagree and the empty "Upload Additional Documents" page slips through. Full breakdown + repro video are here.

@abzokhattab

Copy link
Copy Markdown
Contributor

on my list

@abzokhattab

Copy link
Copy Markdown
Contributor

Able to reproduce using #91289 (comment)

Now the PDF step is hidden

Untitled.mov

However, when I continue through the flow I hit a backend error on the Corpay onboarding submission. It reproduces both before and after this fix, and since the change here only toggles the visibility of the (empty) Documents page — it doesn't alter the request payload at all (no document is sent for a GB national in either case) . I don't think the error is related to this PR. but we need to check why is it happening since its blocking the user

Screen.Recording.2026-06-03.at.11.07.29.mov
image

@yusufdeveloper2903
yusufdeveloper2903 force-pushed the yusufdeveloper2903/fix-90505-empty-documents-page branch from a46a251 to 95107de Compare June 9, 2026 09:44
@yusufdeveloper2903

Copy link
Copy Markdown
Contributor Author

@HaleyJacobson , @youssef-lr

Hi @youssef-lr @heyjennahay 👋

Friendly bump on this one. A quick status recap:

  • ✅ Merged latest main into the branch — no conflicts, branch is MERGEABLE and all checks are green.
  • ✅ Repro confirmed, unit test added, and all platforms tested with screenshots/videos in the PR description.

The only thing left is an internal review/approval. @youssef-lr's earlier review got dismissed after the latest push, so I just want to make sure this doesn't fall through the cracks.

Could you let me know the plan here — are we good to move toward merging this, or is there a reason we'd want to close it instead? Happy to make any changes if something's still needed. 🙏

Thanks!

@yusufdeveloper2903

Copy link
Copy Markdown
Contributor Author

Hi @abzokhattab (C+) and @youssef-lr 👋

Just a gentle follow-up on this one — the PR has been open for a few weeks now and I wanted to check in. The change is ready and tested on all platforms, with before/after evidence attached.

Whenever you both have a spare moment, could we move it forward — either complete the review so we can get it merged, or, if there are concerns or it's no longer needed, let me know and we can close it out. Either way works for me; I'd just love to bring it to a clear resolution. 🙏

Thanks so much for your time and help!

@abzokhattab

Copy link
Copy Markdown
Contributor

@youssef-lr

Copy link
Copy Markdown
Contributor

@yusufdeveloper2903 can you use the new checklist please?

@abzokhattab

Copy link
Copy Markdown
Contributor

@youssef-lr done

@youssef-lr
youssef-lr merged commit cc90dd2 into Expensify:main Jun 19, 2026
32 of 33 checks passed
@melvin-bot

melvin-bot Bot commented Jun 19, 2026

Copy link
Copy Markdown

Congrats, that's your 5th PR merged! 🎉 Do you know about the ContributorPlus role? It's an opportunity to earn more in the Expensify Open Source community. Keep up the great work - thanks!

@github-actions

Copy link
Copy Markdown
Contributor

🚧 @youssef-lr has triggered a test Expensify/App build. You can view the workflow run here.

@OSBotify

Copy link
Copy Markdown
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging by https://github.com/youssef-lr in version: 9.4.17-0 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

Bundle Size Analysis (Sentry):

@MelvinBot

Copy link
Copy Markdown
Contributor

🤖 Help site review: no changes required.

I reviewed this PR against the help site articles under App/docs/articles and found no documentation updates are needed.

Why: This is a purely internal UX bug fix. It changes the skip predicate in BeneficialOwnerDetailsFormPages.tsx so the Upload Additional Documents sub-step is skipped exactly when all four document flags are false (i.e. when the page would be empty), reusing the same getNeededDocumentsStatusForBeneficialOwner helper that drives the page's render. It:

  • Adds no feature and removes none.
  • Changes no user-facing copy, labels, tabs, or buttons.
  • Does not change which documents are required for global reimbursement.

The relevant help articles (e.g. Global Reimbursement - United Kingdom) document which documents Compliance requires for a given country/currency. This fix doesn't alter those requirements — it only prevents an empty page from rendering when no in-app document upload is needed. Since the documented behavior is unchanged, there's nothing to update on the help site, and no draft PR is needed.

@yusufdeveloper2903, please review the linked help site PR and confirm it reflects the current behavior. Then mark the linked help site PR Ready for review

(Note: no help site PR was created because no documentation changes are required. If you believe a specific article should be updated, let me know which one and what behavior it should reflect, and I'll create the draft PR.)

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/blimpich in version: 9.4.17-3 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 failure ❌

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/blimpich in version: 9.4.17-3 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 failure ❌

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.

5 participants