Skip to content

Commit

Permalink
Merge pull request #45706 from daledah/fix/43759
Browse files Browse the repository at this point in the history
fix: workspace name not shown in invoice preview
  • Loading branch information
carlosmiceli authored Jul 19, 2024
2 parents 584fabd + 7fb57fe commit 567627d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/actions/Policy/Policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ function getPolicy(policyID: string | undefined): OnyxEntry<Policy> {
*/
function getPrimaryPolicy(activePolicyID?: OnyxEntry<string>): Policy | undefined {
const activeAdminWorkspaces = PolicyUtils.getActiveAdminWorkspaces(allPolicies);
const primaryPolicy: Policy | null | undefined = allPolicies?.[activePolicyID ?? '-1'];
const primaryPolicy: Policy | null | undefined = allPolicies?.[`${ONYXKEYS.COLLECTION.POLICY}${activePolicyID ?? '-1'}`];

return primaryPolicy ?? activeAdminWorkspaces[0];
}
Expand Down

0 comments on commit 567627d

Please sign in to comment.