From 78e953c5cad0e7e94aeff05143b10cce4cf883dc Mon Sep 17 00:00:00 2001 From: Aritra Chatterjee Date: Mon, 4 Mar 2024 11:36:29 +0530 Subject: [PATCH] workflow check --- packages/webapp/src/actions/joinGame.ts | 3 +-- packages/webapp/src/components/cards/handCard.tsx | 8 +++++--- packages/webapp/src/components/collection/filterPanel.tsx | 8 ++++++-- packages/webapp/src/wagmi/BurnerConnector.ts | 2 +- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/packages/webapp/src/actions/joinGame.ts b/packages/webapp/src/actions/joinGame.ts index fbb1c6ed..c4a3c235 100644 --- a/packages/webapp/src/actions/joinGame.ts +++ b/packages/webapp/src/actions/joinGame.ts @@ -85,8 +85,7 @@ async function joinGameImpl(args: JoinGameArgs): Promise { if (gameStatus < GameStatus.JOINED) { // we can skip the join step if already performed const promise = doJoinGameTransaction(args, privateInfo.saltHash) - if (gameID === null) - await promise // gameID starts null and the call will set it + if (gameID === null) await promise // gameID starts null and the call will set it else checkFresh(await freshWrap(promise)) } diff --git a/packages/webapp/src/components/cards/handCard.tsx b/packages/webapp/src/components/cards/handCard.tsx index 8457467f..61ada527 100644 --- a/packages/webapp/src/components/cards/handCard.tsx +++ b/packages/webapp/src/components/cards/handCard.tsx @@ -16,7 +16,9 @@ const HandCard = forwardRef(({ id, isDragging, ha return (
(({ id, isDragging, ha showingDetails ? "font-serif overflow-hidden text-2xl font-bold text-slate-200 text-left text-clip max-w-[320px] select-none" : handHovered - ? "font-serif text-[14px] font-bold text-slate-200 text-left truncate select-none" - : "hidden" + ? "font-serif text-[14px] font-bold text-slate-200 text-left truncate select-none" + : "hidden" } > {testCards[id]?.name} diff --git a/packages/webapp/src/components/collection/filterPanel.tsx b/packages/webapp/src/components/collection/filterPanel.tsx index 754a261f..5897943f 100644 --- a/packages/webapp/src/components/collection/filterPanel.tsx +++ b/packages/webapp/src/components/collection/filterPanel.tsx @@ -47,7 +47,9 @@ const FilterPanel: React.FC = ({ @@ -61,7 +63,9 @@ const FilterPanel: React.FC = ({ diff --git a/packages/webapp/src/wagmi/BurnerConnector.ts b/packages/webapp/src/wagmi/BurnerConnector.ts index a3b54961..4203f05e 100644 --- a/packages/webapp/src/wagmi/BurnerConnector.ts +++ b/packages/webapp/src/wagmi/BurnerConnector.ts @@ -106,7 +106,7 @@ export class BurnerConnector extends Connector { if (!this.#connected) { // The next two functions are wagmi actions, not methods of this class! - // Unconditional disconnet to avoid issues: `getAccount().isConnect == false` + // Unconditional disconnect to avoid issues: `getAccount().isConnect == false` // but we still get an `AlreadyConnectedException` if we don't disconnect. await disconnect() await connect({ connector: this })