mirror of
https://github.com/ThisIsBenny/wishlist-app.git
synced 2025-04-19 23:37:41 +00:00
fix text mapping
Signed-off-by: Benny Samir Hierl <bennysamir@posteo.de>
This commit is contained in:
parent
24b6a967e2
commit
6a07188a4a
1 changed files with 1 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue