Skip to content

Commit 7674ae7

Browse files
committed
yarn.lock updated
1 parent dc4cc00 commit 7674ae7

File tree

2 files changed

+453
-239
lines changed

2 files changed

+453
-239
lines changed

pages/escrows/index.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,6 @@ const MyEscrows = () => {
214214
const {balance} = useBalance(user?.contract_address || '',PublicKey.default.toBase58(),true);
215215

216216
const needToDeploy = escrowData == null;
217-
const router=useRouter();
218217
const onSelectToken = (t: Token, c: string, a: "Withdraw" | "Deposit") => {
219218
setToken(t);
220219
setAction(a);
@@ -232,12 +231,12 @@ const MyEscrows = () => {
232231
// return (<Loading/>);
233232
// }
234233

235-
if (action && token && contract) {
234+
if (action && token && (contract || escrowData)) {
236235
return (
237236
<EscrowDepositWithdraw
238237
action={action}
239238
token={token}
240-
contract={contract}
239+
contract={contract || user?.contract_address || ''}
241240
onBack={onBack}
242241
canDeposit={!needToDeploy} //ontract === contractInUse &&
243242
canWithdraw={!needToDeploy}

0 commit comments

Comments
 (0)