File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -185,6 +185,12 @@ jobs:
185
185
working_directory : ~/web3-onboard-monorepo/packages/react
186
186
steps :
187
187
- node-build-steps
188
+ build-magic :
189
+ docker :
190
+ - image : cimg/node:16.13.1
191
+ working_directory : ~/web3-onboard-monorepo/packages/magic
192
+ steps :
193
+ - node-build-steps
188
194
189
195
workflows :
190
196
version : 2
@@ -249,3 +255,7 @@ workflows:
249
255
jobs :
250
256
- build-react :
251
257
<< : *deploy_production_filters
258
+ magic :
259
+ jobs :
260
+ - build-magic :
261
+ << : *deploy_production_filters
Original file line number Diff line number Diff line change @@ -22,9 +22,8 @@ const loginModal = async (options: LoginOptions): Promise<boolean> => {
22
22
23
23
loggedIn$ . pipe ( take ( 1 ) ) . subscribe ( ( ) => {
24
24
app . $destroy ( )
25
- document . body . removeChild (
26
- document . body . querySelector ( 'onboard-magic-login-modal' )
27
- )
25
+ const modalEl = document . body . querySelector ( 'onboard-magic-login-modal' )
26
+ modalEl && document . body . removeChild ( modalEl )
28
27
} )
29
28
30
29
return firstValueFrom ( loggedIn$ )
You can’t perform that action at this time.
0 commit comments