Skip to content

Commit

Permalink
fix(ui): fix the toast text for updating/deleting the repository prov…
Browse files Browse the repository at this point in the history
…iders
  • Loading branch information
liangfung committed Jun 4, 2024
1 parent d616c8d commit be908d4
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export const UpdateProviderForm: React.FC<UpdateProviderFormProps> = ({
}
})
if (updateResolver?.(res?.data)) {
toast.success('Updated GitHub repository provider successfully')
toast.success('Updated provider successfully')
form?.reset(form?.getValues())
onSuccess?.()
onUpdate?.()
Expand All @@ -188,9 +188,7 @@ export const UpdateProviderForm: React.FC<UpdateProviderFormProps> = ({
if (deleteResolver?.(res?.data)) {
onDelete?.()
} else {
toast.error(
res?.error?.message || 'Failed to delete GitHub repository provider'
)
toast.error(res?.error?.message || 'Failed to delete provider')
}
}

Expand Down

0 comments on commit be908d4

Please sign in to comment.