Skip to content

Commit

Permalink
Fix cypress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibautBremand committed Jan 4, 2024
1 parent 5a22640 commit 63f7d4b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions packages/extension/cypress/e2e/send_token.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ describe('Send Token', () => {
set(obj, cb) {
if (cb) cb();
}
},
session: {
get(key, cb) {},
set(obj, cb) {
if (cb) cb();
}
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,10 @@ export const PreparePayment: FC<PreparePaymentProps> = ({ onSendPaymentClick })
}, [client, getCurrentWallet]);

useEffect(() => {
setTokensWithMetadata(tokens);

const fetchTokensData = async () => {
if (!tokens) {
setTokensWithMetadata(undefined);
return;
}

Expand Down

0 comments on commit 63f7d4b

Please sign in to comment.