fix so error messages show txid

This commit is contained in:
tjs 2022-12-02 18:47:08 -05:00
parent 4ec95495d5
commit 3b41277099
9 changed files with 9 additions and 9 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)}

View File

@ -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)}

View File

@ -204,7 +204,7 @@ const JupiterRouteInfo = ({
notify({
title: 'Transaction failed',
description: e.message,
txid: e?.signature,
txid: e?.txid,
type: 'error',
})
} finally {