diff --git a/packages/checkout/widgets-lib/src/views/error/ErrorView.tsx b/packages/checkout/widgets-lib/src/views/error/ErrorView.tsx index 02290fbb57..1fda12a0fc 100644 --- a/packages/checkout/widgets-lib/src/views/error/ErrorView.tsx +++ b/packages/checkout/widgets-lib/src/views/error/ErrorView.tsx @@ -46,8 +46,8 @@ export function ErrorView({ floatHeader testId="error-view" > - - {t('views.ERROR_VIEW.errorText.body', { returnObjects: true })[0]} + + {t('views.ERROR_VIEW.body', { returnObjects: true })[0]} {' '} } > - {t('views.ERROR_VIEW.errorText.body', { returnObjects: true })[1]} + {t('views.ERROR_VIEW.body', { returnObjects: true })[1]} {' '} - {t('views.ERROR_VIEW.errorText.body', { returnObjects: true })[2]} + {t('views.ERROR_VIEW.body', { returnObjects: true })[2]} ); diff --git a/packages/checkout/widgets-lib/src/widgets/bridge/BridgeWidget.tsx b/packages/checkout/widgets-lib/src/widgets/bridge/BridgeWidget.tsx index 18a66d6c57..8d3562a77c 100644 --- a/packages/checkout/widgets-lib/src/widgets/bridge/BridgeWidget.tsx +++ b/packages/checkout/widgets-lib/src/widgets/bridge/BridgeWidget.tsx @@ -218,7 +218,7 @@ export function BridgeWidget({ )} {viewState.view.type === SharedViews.ERROR_VIEW && ( sendBridgeWidgetCloseEvent(eventTarget)} errorEventAction={() => { diff --git a/packages/checkout/widgets-lib/src/widgets/bridge/components/BridgeForm.tsx b/packages/checkout/widgets-lib/src/widgets/bridge/components/BridgeForm.tsx index e42dd2403c..e79a016a49 100644 --- a/packages/checkout/widgets-lib/src/widgets/bridge/components/BridgeForm.tsx +++ b/packages/checkout/widgets-lib/src/widgets/bridge/components/BridgeForm.tsx @@ -499,7 +499,7 @@ export function BridgeForm(props: BridgeFormProps) { tokenSymbol={estimates?.token?.symbol ?? ''} fees={[ { - label: t('views.drawers.feesBreakdown.fees.gas.label'), + label: t('drawers.feesBreakdown.fees.gas.label'), fiatAmount: gasFiatAmount, amount: gasFee, }, diff --git a/packages/checkout/widgets-lib/src/widgets/connect/views/ReadyToConnect.tsx b/packages/checkout/widgets-lib/src/widgets/connect/views/ReadyToConnect.tsx index b900344376..f5cc528d2d 100644 --- a/packages/checkout/widgets-lib/src/widgets/connect/views/ReadyToConnect.tsx +++ b/packages/checkout/widgets-lib/src/widgets/connect/views/ReadyToConnect.tsx @@ -142,6 +142,8 @@ export function ReadyToConnect({ targetChainId, allowedChains }: ReadyToConnectP }); handleConnectViewUpdate(provider); } catch (err: any) { + // eslint-disable-next-line no-console + console.error(err); setLoading(false); setFooterButtonTextKey(`${textView()}.footer.buttonText2`); } diff --git a/packages/checkout/widgets-lib/src/widgets/connect/views/SwitchNetworkEth.tsx b/packages/checkout/widgets-lib/src/widgets/connect/views/SwitchNetworkEth.tsx index f8dfb35772..d01461cfc9 100644 --- a/packages/checkout/widgets-lib/src/widgets/connect/views/SwitchNetworkEth.tsx +++ b/packages/checkout/widgets-lib/src/widgets/connect/views/SwitchNetworkEth.tsx @@ -21,7 +21,7 @@ export function SwitchNetworkEth() { const { viewDispatch } = useContext(ViewContext); const { connectDispatch, connectState } = useContext(ConnectContext); const { checkout, provider, sendCloseEvent } = connectState; - const [buttonTextKey, setButtonTextKey] = useState('views.SWITCH_NETWORK.eth.button.text'); + const [buttonTextKey, setButtonTextKey] = useState(t('views.SWITCH_NETWORK.eth.button.text')); const { page, track } = useAnalytics(); @@ -63,7 +63,7 @@ export function SwitchNetworkEth() { }, }); } catch (err: any) { - setButtonTextKey('views.SWITCH_NETWORK.eth.button.retryText'); + setButtonTextKey(t('views.SWITCH_NETWORK.eth.button.retryText')); } }, [provider, checkout, track]); diff --git a/packages/checkout/widgets-lib/src/widgets/connect/views/SwitchNetworkZkEVM.tsx b/packages/checkout/widgets-lib/src/widgets/connect/views/SwitchNetworkZkEVM.tsx index 5cb313100f..b566cd86f9 100644 --- a/packages/checkout/widgets-lib/src/widgets/connect/views/SwitchNetworkZkEVM.tsx +++ b/packages/checkout/widgets-lib/src/widgets/connect/views/SwitchNetworkZkEVM.tsx @@ -18,7 +18,7 @@ export function SwitchNetworkZkEVM() { const { viewDispatch } = useContext(ViewContext); const { connectDispatch, connectState } = useContext(ConnectContext); const { checkout, provider, sendCloseEvent } = connectState; - const [buttonTextKey, setButtonTextKey] = useState('views.SWITCH_NETWORK.zkEVM.button.text'); + const [buttonTextKey, setButtonTextKey] = useState(t('views.SWITCH_NETWORK.zkEVM.button.text')); const { page, track } = useAnalytics(); useEffect(() => { @@ -59,7 +59,7 @@ export function SwitchNetworkZkEVM() { }, }); } catch (err: any) { - setButtonTextKey('views.SWITCH_NETWORK.zkEVM.button.retryText'); + setButtonTextKey(t('views.SWITCH_NETWORK.zkEVM.button.retryText')); } }, [provider, checkout]);