fix so error messages show txid
This commit is contained in:
parent
4ec95495d5
commit
3b41277099
|
@ -115,7 +115,7 @@ const UserSetup = ({ onClose }: { onClose: () => void }) => {
|
|||
} catch (e: any) {
|
||||
notify({
|
||||
title: t('new-account-failed'),
|
||||
txid: e?.signature,
|
||||
txid: e?.txid,
|
||||
type: 'error',
|
||||
})
|
||||
console.error(e)
|
||||
|
|
|
@ -88,7 +88,7 @@ const CreateAccountForm = ({
|
|||
setLoading(false)
|
||||
notify({
|
||||
title: t('new-account-failed'),
|
||||
txid: e?.signature,
|
||||
txid: e?.txid,
|
||||
type: 'error',
|
||||
})
|
||||
console.error(e)
|
||||
|
|
|
@ -38,7 +38,7 @@ const AccountNameModal = ({ isOpen, onClose }: ModalProps) => {
|
|||
setLoading(false)
|
||||
notify({
|
||||
title: t('account-update-failed'),
|
||||
txid: e?.signature,
|
||||
txid: e?.txid,
|
||||
type: 'error',
|
||||
})
|
||||
console.error(e)
|
||||
|
|
|
@ -56,7 +56,7 @@ const DelegateModal = ({ isOpen, onClose }: ModalProps) => {
|
|||
} catch (e: any) {
|
||||
notify({
|
||||
title: t('account-update-failed'),
|
||||
txid: e?.signature,
|
||||
txid: e?.txid,
|
||||
type: 'error',
|
||||
})
|
||||
console.error(e)
|
||||
|
|
|
@ -145,7 +145,7 @@ function DepositModal({ isOpen, onClose, token }: ModalCombinedProps) {
|
|||
notify({
|
||||
title: 'Transaction failed',
|
||||
description: e.message,
|
||||
txid: e?.signature,
|
||||
txid: e?.txid,
|
||||
type: 'error',
|
||||
})
|
||||
console.error('Error depositing:', e)
|
||||
|
|
|
@ -134,7 +134,7 @@ function RepayModal({ isOpen, onClose, token }: ModalCombinedProps) {
|
|||
notify({
|
||||
title: 'Transaction failed',
|
||||
description: e.message,
|
||||
txid: e?.signature,
|
||||
txid: e?.txid,
|
||||
type: 'error',
|
||||
})
|
||||
console.error('Error repaying:', e)
|
||||
|
|
|
@ -33,7 +33,7 @@ const AnimationSettings = () => {
|
|||
|
||||
return (
|
||||
<>
|
||||
<div className="mb-4 flex items-center justify-between pr-4">
|
||||
<div className="mb-4 flex items-center justify-between pr-4 md:pr-8">
|
||||
<h2 className="text-base">{t('settings:animations')}</h2>
|
||||
<Switch
|
||||
checked={!Object.values(animationSettings).includes(false)}
|
||||
|
|
|
@ -34,7 +34,7 @@ const SoundSettings = () => {
|
|||
|
||||
return (
|
||||
<>
|
||||
<div className="mb-4 flex items-center justify-between pr-4">
|
||||
<div className="mb-4 flex items-center justify-between pr-4 md:pr-8">
|
||||
<h2 className="text-base">{t('settings:sounds')}</h2>
|
||||
<Switch
|
||||
checked={!Object.values(soundSettings).includes(false)}
|
||||
|
|
|
@ -204,7 +204,7 @@ const JupiterRouteInfo = ({
|
|||
notify({
|
||||
title: 'Transaction failed',
|
||||
description: e.message,
|
||||
txid: e?.signature,
|
||||
txid: e?.txid,
|
||||
type: 'error',
|
||||
})
|
||||
} finally {
|
||||
|
|
Loading…
Reference in New Issue