Skip to content

Commit

Permalink
fix: small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gagdiez committed May 22, 2024
1 parent 03914d6 commit c190973
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions frontend/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'regenerator-runtime/runtime';
import { utils } from 'near-api-js'
import { Wallet } from './near-wallet';
import { Wallet } from './wallet';

const HELLO_ADDRESS = "hello.near-examples.testnet";
const GUEST_ADDRESS = "guestbook.near-examples.testnet";
Expand All @@ -10,14 +10,10 @@ const THIRTY_TGAS = '30000000000000';
const NO_DEPOSIT = '0';

// Setup on page load
window.onload = async () => {
let signedAccountId = await wallet.startUp(()=>{});

if (signedAccountId) {
signedInFlow(signedAccountId);
} else {
signedOutFlow();
}
window.onload = () => {
wallet.startUp(
signedAccountId => signedAccountId? signedInFlow(signedAccountId): signedOutFlow()
);

getGreetingAndMessages();
};
Expand Down
File renamed without changes.

0 comments on commit c190973

Please sign in to comment.