Skip to content

Commit 98a44fa

Browse files
fix(ui): conditional display of message
1 parent c1d230f commit 98a44fa

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

invokeai/frontend/web/src/features/gallery/components/Boards/DeleteBoardModal.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,13 @@ const DeleteBoardModal = () => {
147147
bottomMessage={t('boards.bottomMessage')}
148148
/>
149149
)}
150-
<Text>
151-
{boardToDelete !== 'none' &&
152-
(boardToDelete.is_private
150+
{boardToDelete !== 'none' && (
151+
<Text>
152+
{boardToDelete.is_private
153153
? t('boards.deletedPrivateBoardsCannotbeRestored')
154-
: t('boards.deletedBoardsCannotbeRestored'))}
155-
</Text>
154+
: t('boards.deletedBoardsCannotbeRestored')}
155+
</Text>
156+
)}
156157
<Text>{t('gallery.deleteImagePermanent')}</Text>
157158
</Flex>
158159
</AlertDialogBody>

0 commit comments

Comments
 (0)