diff --git a/src/pages/Email.tsx b/src/pages/Email.tsx index 039b74c..630145d 100644 --- a/src/pages/Email.tsx +++ b/src/pages/Email.tsx @@ -21,7 +21,7 @@ const Email = () => { > - Thank you for registering! + Thank you for registering! {REDIRECT_EMAIL_MSG} diff --git a/src/pages/Thanks.tsx b/src/pages/Thanks.tsx index f8f6c3e..c8a18f0 100644 --- a/src/pages/Thanks.tsx +++ b/src/pages/Thanks.tsx @@ -38,9 +38,8 @@ const Thanks: React.FC = () => { throw new Error("Token has expired"); } - const uuidBuffer = Buffer.from(decoded.subscriber_id.replace(/-/g, ''), 'hex'); - - const subscriberIdHash = ethers.utils.sha256(uuidBuffer); + const subscriberIdBytes = ethers.utils.toUtf8Bytes(decoded.subscriber_id) + const subscriberIdHash = ethers.utils.sha256(subscriberIdBytes); navigate('/connect-wallet', { state:{