File tree Expand file tree Collapse file tree 2 files changed +453
-239
lines changed
Expand file tree Collapse file tree 2 files changed +453
-239
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments