diff --git a/src/services/XummService.ts b/src/services/XummService.ts index 4b9b7da..875dce9 100644 --- a/src/services/XummService.ts +++ b/src/services/XummService.ts @@ -15,9 +15,14 @@ class XummService { if (isInXumm()) { // eslint-disable-next-line @typescript-eslint/no-var-requires const { XummSdkJwt } = require("xumm-sdk"); - // eslint-disable-next-line @typescript-eslint/no-var-requires - xapp = new xAppSdk(); - Sdk = new XummSdkJwt(xummApiKey); + + try { + // eslint-disable-next-line @typescript-eslint/no-var-requires + xapp = new xAppSdk(); + Sdk = new XummSdkJwt(xummApiKey); + } catch (error) { + console.log("Errir SUmSdk", error); + } } } async getOttData(): Promise {