Skip to content

Commit ec5aaa4

Browse files
committed
Fix [object, object] error with authenticated footer text
1 parent c5f21d2 commit ec5aaa4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/paywall-previews/shared/FooterText.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ const FooterText = ({ isAuthenticated, loginFooterLabel }: Props) => (
2828
onClick,
2929
};
3030

31-
const authText = `Welcome back ${(
32-
<strong {...elementProps}>loginFooterLabel</strong>
33-
)} Access this content!`;
31+
const authText = (
32+
<>
33+
Welcome back <strong {...elementProps}>{loginFooterLabel}</strong> Access this content!
34+
</>
35+
);
3436
const noAuthText = loginFooterLabel;
3537

3638
return (

0 commit comments

Comments
 (0)