Skip to content

Commit 18d8d11

Browse files
authored
Merge pull request #26 from scalefocus/feature/put-dot-in-error-message
Put "." instead of a "?" at the end of the delete album error message
2 parents 222233a + d8d62ec commit 18d8d11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Albums/AlbumsGallery.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import CloseIcon from '@mui/icons-material/Close';
22
import DeleteIcon from '@mui/icons-material/Delete';
33
import { AppBar, Button, Checkbox, Dialog, DialogActions, DialogTitle, Divider, Grid, IconButton, Paper, Slide, Stack, Toolbar, Tooltip, Typography, useTheme } from '@mui/material';
44
import { useQueryClient } from '@tanstack/react-query';
5-
import { deleteAlbum,getAlbums } from 'api/albumApi';
5+
import { deleteAlbum, getAlbums } from 'api/albumApi';
66
import { Album } from "models/Album";
77
import { useMemo, useState } from 'react';
88
import toast from 'react-hot-toast';
@@ -39,7 +39,7 @@ export const AlbumsGallery: React.FC = () => {
3939
return;
4040
}
4141

42-
if (confirm(`Are you sure you want to delete "${a.name}"? The files in the albums will be still available in your feed?`)) {
42+
if (confirm(`Are you sure you want to delete "${a.name}"? The files in the albums will be still available in your feed.`)) {
4343
deleteAlbumMutation.mutate(id, {
4444
onSuccess: () => {
4545
toast.success(`The album "${a.name}" has been successfully deleted.`);

0 commit comments

Comments
 (0)