File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
frontends/web/src/routes/account/receive Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -76,9 +76,8 @@ export const Receive = ({
76
76
const availableScriptTypes = useRef < accountApi . ScriptType [ ] > ( ) ;
77
77
78
78
const hasManyScriptTypes = availableScriptTypes . current && availableScriptTypes . current . length > 1 ;
79
- const addressTypeDialogOpened = ! ! ( addressTypeDialog && ( hasManyScriptTypes || insured ) ) ;
80
79
81
- useEsc ( ( ) => ! addressTypeDialogOpened && ! verifying && route ( `/account/${ code } ` ) ) ;
80
+ useEsc ( ( ) => addressTypeDialog === undefined && ! verifying && route ( `/account/${ code } ` ) ) ;
82
81
83
82
useEffect ( ( ) => {
84
83
if ( receiveAddresses ) {
@@ -211,7 +210,7 @@ export const Receive = ({
211
210
</ button >
212
211
) }
213
212
< form onSubmit = { handleSubmit } >
214
- < Dialog open = { addressTypeDialogOpened } onClose = { ( ) => setAddressTypeDialog ( undefined ) } medium title = { t ( 'receive.changeScriptType' ) } >
213
+ < Dialog open = { addressTypeDialog !== undefined } onClose = { ( ) => setAddressTypeDialog ( undefined ) } medium title = { t ( 'receive.changeScriptType' ) } >
215
214
{ availableScriptTypes . current && availableScriptTypes . current . map ( ( scriptType , i ) => (
216
215
< div key = { scriptType } >
217
216
{ addressTypeDialog && (
You can’t perform that action at this time.
0 commit comments