fix text mapping

Signed-off-by: Benny Samir Hierl <bennysamir@posteo.de>
This commit is contained in:
Benny Samir Hierl 2022-02-20 11:14:24 +01:00
parent 24b6a967e2
commit 6a07188a4a

View file

@ -92,11 +92,7 @@ const convertBase64 = (file: File): Promise<string | null> => {
var height = image.height
var width = image.width
if (height > 200 || width > 200) {
setErrors([
t(
'components.wishlist-header.main.form.image-file.error-image-size'
),
])
setErrors([t('components.form-wishlist.image-file.error-image-size')])
return resolve('')
}
resolve(fileReader.result as string)