diff --git a/pages/badges-assignment/new.js b/pages/badges-assignment/new.js index 3441ccaf..e083c673 100644 --- a/pages/badges-assignment/new.js +++ b/pages/badges-assignment/new.js @@ -139,7 +139,12 @@ export default class NewBadgeAssignment extends Component { ) } catch (error) { console.log(error) - toast.error(`Unexpected error, please try again later.`) + + if (error.message === 'User is already assigned to badge.') { + toast.error(`User is already assigned to this badge, please select a different one.`) + } else { + toast.error(`Unexpected error, please try again later.`) + } } }} render={({ isSubmitting, values, errors, touched }) => {