Add catch error

This commit is contained in:
Nicola Benaglia 2025-05-28 20:21:47 +02:00
parent 2617e0688e
commit 96e837fe55

View File

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