Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
mdirolf committed Oct 28, 2023
1 parent 0cd190b commit 15f5295
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 3 additions & 1 deletion app/components/FollowButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ export const FollowButton = ({
{ merge: true }
),
]).then(() => {
showSnackbar(t`You'll be notified when ${constructorName} posts a new puzzle`);
showSnackbar(
t`You'll be notified when ${constructorName} posts a new puzzle`
);
});
},
[constructorName, page.u, showSnackbar]
Expand Down
7 changes: 3 additions & 4 deletions app/components/PuzzleOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,9 @@ export const PuzzleOverlay = (props: SuccessOverlayProps | BeginPauseProps) => {
let loginButton: ReactNode = t`Login (via Google) to save your puzzle progress/stats`;
if (!authContext.loading) {
if (authContext.user?.email) {
const displayNameOrEmail = authContext.user.displayName || authContext.user.email;
loginButton = t`Logged in as ${
displayNameOrEmail
}`;
const displayNameOrEmail =
authContext.user.displayName || authContext.user.email;
loginButton = t`Logged in as ${displayNameOrEmail}`;
} else if (authContext.user) {
loginButton = (
<>
Expand Down

0 comments on commit 15f5295

Please sign in to comment.