Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-vahn committed May 8, 2024
1 parent abf9b8c commit c31fffa
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,18 @@ function App() {
}, [tonWallet]);

// Test Functions
const [testMessage, setTestMessage] = useState<string | null>(null);
const [signedMessage, setSignedMessage] = useState<string | null>(null);
const triggerTestMessageSign = () => {
const providerId = window.localStorage.getItem('providerId');
if (!providerId) {
console.error('Provider ID not found.');
return;
}
const wallet = window.localStorage.getItem('wallet');
setTestMessage(wallet);
const wallet = window.localStorage.getItem('wallet') || 'trust';
if (!wallet) {
console.error('Wallet not found.');
return;
}

if (wallet == 'metamask') {
WebApp.openLink('https://metamask.app.link/');
Expand Down Expand Up @@ -271,7 +273,6 @@ function App() {
<div>
<div className="h-screen bg-customGrayWallet">
<BackButton goBack={goBack} />
{testMessage}
<div className="flex flex-col gap-4 p-4">
<div className="flex flex-col">
<p className="m-0 text-xl font-semibold">
Expand Down

0 comments on commit c31fffa

Please sign in to comment.