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 { useSetAtom } from 'jotai';
import { txListAtom } from '../../atoms/global';
import { ErrorRounded } from '@mui/icons-material';
export const Label = styled('label')`
display: block;
@ -123,13 +124,17 @@ export const AddGroup = ({ address, open, setOpen }) => {
const fee = await getFee('CREATE_GROUP');
await show({
message: t('core:message.question.perform_transaction', {
action: 'CREATE_GROUP',
postProcess: 'capitalizeFirstChar',
}),
publishFee: fee.fee + ' QORT',
});
try {
await show({
message: t('core:message.question.perform_transaction', {
action: 'CREATE_GROUP',
postProcess: 'capitalizeFirstChar',
}),
publishFee: fee.fee + ' QORT',
});
} catch (error) {
console.log(error);
}
await new Promise((res, rej) => {
window