Skip to content

Commit

Permalink
close verify window as soon as user ansswers
Browse files Browse the repository at this point in the history
  • Loading branch information
pbking committed Feb 20, 2024
1 parent c8778fe commit 5e01a2d
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -260,18 +260,16 @@ function ConfirmDeleteDialog( {

const handleConfirmUninstall = async () => {
setNotice( null );

setIsOpen( false );
try {
await uninstallFontFamily( font );
setIsOpen( false );
navigator.goBack();
handleSetLibraryFontSelected( null );
setNotice( {
type: 'success',
message: __( 'Font family uninstalled successfully.' ),
} );
} catch ( error ) {
setIsOpen( false );
setNotice( {
type: 'error',
message:
Expand Down

0 comments on commit 5e01a2d

Please sign in to comment.