Skip to content

Commit

Permalink
Addressed lint error with confirm
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonMun7 committed Mar 2, 2025
1 parent 22d3762 commit 5fda562
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions frontend/src/components/Admin/CoffeeChats/CoffeeChats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ const CoffeeChats: React.FC = () => {

const archiveAllCoffeeChats = async () => {
if (
!confirm('Are you sure you want to archive all coffee chats? This action cannot be undone.')
!window.confirm(
'Are you sure you want to archive all coffee chats? This action cannot be undone.'
)
) {
return;
}
Expand All @@ -81,7 +83,9 @@ const CoffeeChats: React.FC = () => {

const unarchiveAllCoffeeChats = async () => {
if (
!confirm('Are you sure you want to unarchive all coffee chats? This action cannot be undone.')
!window.confirm(
'Are you sure you want to unarchive all coffee chats? This action cannot be undone.'
)
) {
return;
}
Expand Down

0 comments on commit 5fda562

Please sign in to comment.