Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tom2drum committed Feb 4, 2025
1 parent a8738a8 commit 9ba8da5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ui/rewards/login/RewardsLoginModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ const RewardsLoginModal = () => {

const handleAuthModalClose = useCallback((isSuccess?: boolean, rewardsApiToken?: string) => {
if (isSuccess && rewardsApiToken) {
goNext(false);
closeLoginModal();
}
setAuthModalInitialScreen(undefined);
authModal.onClose();
}, [ authModal, setAuthModalInitialScreen, goNext ]);
}, [ authModal, setAuthModalInitialScreen, closeLoginModal ]);

return (
<>
Expand Down
2 changes: 1 addition & 1 deletion ui/rewards/login/steps/LoginStepContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const LoginStepContent = ({ goNext, closeModal, openAuthModal }: Props) => {
setRefCodeError.on();
} else {
if (isNewUser) {
goNext(Boolean(refCode));
goNext(isRefCodeUsed);
} else {
closeModal();
router.push({ pathname: '/account/rewards' }, undefined, { shallow: true });
Expand Down
2 changes: 1 addition & 1 deletion ui/snippets/auth/useSignInWithWallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function composeMessage(address: string, nonceBlockscout: string, nonceRewards:
`${ urlObj.hostname } wants you to sign in with your Ethereum account:`,
address,
'',
`Sign in/up to Blockscout Account V2 & Blockscout Merits program.[ Merits nonce: ${ nonceRewards } ]`,
`Sign in/up to Blockscout Account V2 & Blockscout Merits program. Merits nonce: ${ nonceRewards }.`,
'',
`URI: ${ urlObj.origin }`,
'Version: 1',
Expand Down

0 comments on commit 9ba8da5

Please sign in to comment.