Skip to content

Commit

Permalink
Merge branch 'version_3.3.17' into AUT-19336-AUT-19584
Browse files Browse the repository at this point in the history
  • Loading branch information
OmerGery committed Apr 10, 2024
2 parents 9f68c41 + 61411da commit c6aac51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const BusinessAccountText = ({
title, subTitle,
} : BusinessAccountTextProps) => (
<TitleWithSubTitle>
<BoldTitle numberOfLines={1}>{title}</BoldTitle>
{title && <BoldTitle numberOfLines={1}>{title}</BoldTitle>}
<SubTitle numberOfLines={1}>{subTitle}</SubTitle>
</TitleWithSubTitle>
);
Expand Down
4 changes: 3 additions & 1 deletion examples/client/Locomotion/src/context/payments/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,9 @@ const usePayments = () => {
if (relevantBusinessAccount) {
return relevantBusinessAccount;
}
return null;
// this means the client no longer have access to the business account, or BA was deleted
// requires a fallback object to avoid breaking the app
return {};
};

return {
Expand Down

0 comments on commit c6aac51

Please sign in to comment.