diff --git a/sdk/src/utils/simulateExecuteOrder.ts b/sdk/src/utils/simulateExecuteOrder.ts index 640912435a..5db6ad88e1 100644 --- a/sdk/src/utils/simulateExecuteOrder.ts +++ b/sdk/src/utils/simulateExecuteOrder.ts @@ -108,7 +108,7 @@ export async function simulateExecuteOrder(sdk: GmxSdk, p: SimulateExecuteParams } ); } catch (txnError) { - let msg: React.ReactNode = undefined; + let msg: string | undefined = undefined; try { const errorData = extractDataFromError(txnError?.info?.error?.message) ?? extractDataFromError(txnError?.message);