kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Merge branch 'fix-show-error-identity' into 'main'
fix: show toast error when requesting a NIP 05 identity See merge request soapbox-pub/soapbox!3339merge-requests/3341/head
commit
5622458592
|
@ -5,6 +5,7 @@ import { FormattedMessage, defineMessages, useIntl } from 'react-intl';
|
|||
|
||||
import { patchMe } from 'soapbox/actions/me.ts';
|
||||
import { changeSetting } from 'soapbox/actions/settings.ts';
|
||||
import { HTTPError } from 'soapbox/api/HTTPError.ts';
|
||||
import List, { ListItem } from 'soapbox/components/list.tsx';
|
||||
import Button from 'soapbox/components/ui/button.tsx';
|
||||
import { CardHeader, CardTitle } from 'soapbox/components/ui/card.tsx';
|
||||
|
@ -90,6 +91,11 @@ const EditIdentity: React.FC<IEditIdentity> = () => {
|
|||
setReason('');
|
||||
setSubmitted(true);
|
||||
},
|
||||
onError(error) {
|
||||
if (error instanceof HTTPError) {
|
||||
toast.showAlertForError(error);
|
||||
}
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue