Skip to content

Commit

Permalink
Replace structuredClone with cloneDeep for native compat (#8633)
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanjeffers authored May 28, 2024
1 parent 03c16ae commit e7dc09b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import axios, {
ResponseType
} from 'axios'
import fetch from 'cross-fetch'
import { cloneDeep } from 'lodash'
// @ts-ignore
import urlJoin, { PathArg } from 'proper-url-join/es/index.js'
import type { TransactionReceipt } from 'web3-core'
Expand Down Expand Up @@ -272,7 +273,7 @@ export class DiscoveryProvider {
const currentUser = await web3AccountPromise
if (currentUser) {
if (this.enableUserWalletOverride) {
this.userStateManager.setWeb3User(structuredClone(currentUser))
this.userStateManager.setWeb3User(cloneDeep(currentUser))
}
await this.userStateManager.setCurrentUser(currentUser)
}
Expand Down

0 comments on commit e7dc09b

Please sign in to comment.