AccountManagerBanner was subscribing to the entire PERSONAL_DETAILS_LIST Onyx key and then extracting a single account manager's personal details using getPersonalDetailsForAccountIDs. This caused the component to re-render whenever any user's personal details changed, even though it only needs the account manager's data.
This change replaces that full subscription with a targeted useOnyx selector that extracts only the account manager's personal details by account ID. The getPersonalDetailsForAccountIDs helper and its import are no longer needed and have been removed.
PR: #87558
Issue Owner
Current Issue Owner: @mallenexpensify
AccountManagerBanner was subscribing to the entire PERSONAL_DETAILS_LIST Onyx key and then extracting a single account manager's personal details using getPersonalDetailsForAccountIDs. This caused the component to re-render whenever any user's personal details changed, even though it only needs the account manager's data.
This change replaces that full subscription with a targeted useOnyx selector that extracts only the account manager's personal details by account ID. The getPersonalDetailsForAccountIDs helper and its import are no longer needed and have been removed.
PR: #87558
Issue Owner
Current Issue Owner: @mallenexpensify