nicolium: when did this logic invert wtf

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-03-04 16:25:38 +01:00
parent ff0ef0cc3c
commit e6ab0ef2a4

View File

@ -17,7 +17,7 @@ const useImageField = (opts: UseImageFieldOpts = {}) => {
const { stripMetadata } = useSettings();
const [file, setFile] = useState<File | null>(null);
const src = usePreview(file) ?? (file === null ? undefined : opts.preview);
const src = usePreview(file) ?? (file === null ? opts.preview : undefined);
const onChange = async (files: FileList | null) => {
const file = files?.item(0);