mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-06-05 16:06:58 +00:00
Add catch error
This commit is contained in:
parent
2617e0688e
commit
96e837fe55
@ -40,6 +40,7 @@ import { subscribeToEvent, unsubscribeFromEvent } from '../../utils/events';
|
|||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { useSetAtom } from 'jotai';
|
import { useSetAtom } from 'jotai';
|
||||||
import { txListAtom } from '../../atoms/global';
|
import { txListAtom } from '../../atoms/global';
|
||||||
|
import { ErrorRounded } from '@mui/icons-material';
|
||||||
|
|
||||||
export const Label = styled('label')`
|
export const Label = styled('label')`
|
||||||
display: block;
|
display: block;
|
||||||
@ -123,13 +124,17 @@ export const AddGroup = ({ address, open, setOpen }) => {
|
|||||||
|
|
||||||
const fee = await getFee('CREATE_GROUP');
|
const fee = await getFee('CREATE_GROUP');
|
||||||
|
|
||||||
await show({
|
try {
|
||||||
message: t('core:message.question.perform_transaction', {
|
await show({
|
||||||
action: 'CREATE_GROUP',
|
message: t('core:message.question.perform_transaction', {
|
||||||
postProcess: 'capitalizeFirstChar',
|
action: 'CREATE_GROUP',
|
||||||
}),
|
postProcess: 'capitalizeFirstChar',
|
||||||
publishFee: fee.fee + ' QORT',
|
}),
|
||||||
});
|
publishFee: fee.fee + ' QORT',
|
||||||
|
});
|
||||||
|
} catch (error) {
|
||||||
|
console.log(error);
|
||||||
|
}
|
||||||
|
|
||||||
await new Promise((res, rej) => {
|
await new Promise((res, rej) => {
|
||||||
window
|
window
|
||||||
|
Loading…
x
Reference in New Issue
Block a user