Skip to content

Commit

Permalink
fix(notification): send the good notification at update
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikadows committed Jul 4, 2022
1 parent 52df38a commit b73d395
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@
"btn_add": "Add a role",
"btn_mod": "Modify role",
"update_btn": "Modify",
"update_label" : "Modify roles for {{email}}"
"update_label": "Modify roles for {{email}}"
}
}
}
2 changes: 1 addition & 1 deletion public/locales/fr/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@
"btn_add": "Ajouter un role",
"btn_mod": "Modifier un role",
"update_btn": "Modifier",
"update_label" : "Modifier les roles pour {{email}}"
"update_label": "Modifier les roles pour {{email}}"
}
}
}
2 changes: 1 addition & 1 deletion src/components/Recipes/ModifyRecipe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const ModifyRecipe: React.FC = () => {
await uploadRecipeImage(recipe.id ? recipe.id : '', event.target.files[0]);

await queryClient.invalidateQueries(`recipe-${recipe.id}`);
addToast(`${t('products.update.alert_img_upload')}`, {
addToast(`${t('products.alert_img_upload')}`, {
appearance: 'success',
autoDismiss: true,
});
Expand Down

0 comments on commit b73d395

Please sign in to comment.