1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Fix MMI build (#18415)

In the MMI build, the build fencing in this component resulted in an
`else` block with no preceding `if` block, which is a syntax error.
The fence in this case was meant to include "all non-Flask build
types", MMI was mistakenly missing from that list.

Co-authored-by: Brad Decker <bhdecker84@gmail.com>
Co-authored-by: António Regadas <apregadas@gmail.com>
This commit is contained in:
Mark Stacey 2023-04-04 10:29:10 -02:30 committed by GitHub
parent b8422b0b43
commit 2029fb28ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -247,7 +247,7 @@ export default class PermissionConnect extends Component {
setTimeout(() => history.push(DEFAULT_ROUTE), APPROVE_TIMEOUT);
}
///: END:ONLY_INCLUDE_IN
///: BEGIN:ONLY_INCLUDE_IN(main,beta)
///: BEGIN:ONLY_INCLUDE_IN(main,beta,mmi)
if (approved) {
setTimeout(() => history.push(DEFAULT_ROUTE), APPROVE_TIMEOUT);
}