diff --git a/apps/mobile-app/app/(tabs)/credentials/add-edit.tsx b/apps/mobile-app/app/(tabs)/credentials/add-edit.tsx index 6282d17b5..523319983 100644 --- a/apps/mobile-app/app/(tabs)/credentials/add-edit.tsx +++ b/apps/mobile-app/app/(tabs)/credentials/add-edit.tsx @@ -370,6 +370,8 @@ export default function AddEditCredentialScreen() : React.ReactNode { * Delete the credential. */ onPress: async () : Promise => { + setIsLoading(true); + await executeVaultMutation(async () => { await dbContext.sqliteClient!.deleteCredentialById(id); }); @@ -383,6 +385,8 @@ export default function AddEditCredentialScreen() : React.ReactNode { }); }, 200); + setIsLoading(false); + /* * Hard navigate back to the credentials list as the credential that was * shown in the previous screen is now deleted.