diff --git a/src/components/profile/profile-viewer.tsx b/src/components/profile/profile-viewer.tsx index 1de50cd89..6fb3750eb 100644 --- a/src/components/profile/profile-viewer.tsx +++ b/src/components/profile/profile-viewer.tsx @@ -271,6 +271,15 @@ export function ProfileViewer({ onChange, ref }: ProfileViewerProps) { )} /> + {isLocal && openType === 'new' && ( + { + setValue('name', getValues('name') || file.name) + fileDataRef.current = val + }} + /> + )} + {isRemote && ( <> )} /> - - )} - - {(isRemote || isLocal) && ( - ( - - {t('shared.units.minutes')} - - ), - }, - }} - /> - )} - /> - )} - - {isLocal && openType === 'new' && ( - { - setValue('name', getValues('name') || file.name) - fileDataRef.current = val - }} - /> - )} - - {isRemote && ( - <> + ( + + {t('shared.units.minutes')} + + ), + }, + }} + /> + )} + />