Skip to content

Commit

Permalink
web: add ip error better message
Browse files Browse the repository at this point in the history
  • Loading branch information
rickycraft committed Jun 23, 2024
1 parent 3cae366 commit ff08764
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/src/app/dashboard/add-notification.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ export default function AddNotification() {
} catch (err) {
console.error(err)
toast({
title: `Errore adding ${formData.get('ip')}`,
description: (err as Error).message,
title: `Error adding ${formData.get('ip')}`,
description:
'There was an error adding the IP address. Check your IP address and try again.',
variant: 'destructive',
})
}
Expand Down

0 comments on commit ff08764

Please sign in to comment.