Skip to content

Commit 8de32a2

Browse files
rilrompaulpopus
andauthored
fix(ui): usePreventLeave default message (#15042)
### What? The default message in `usePreventLeave` is not structured correctly. ### Why? The word `you` is missing from the sentence. ### How? Adds the word `you` to the sentence. Co-authored-by: Paul Popus <paul@payloadcms.com>
1 parent 22e2466 commit 8de32a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/ui/src/elements/LeaveWithoutSaving/usePreventLeave.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export const useBeforeUnload = (enabled: (() => boolean) | boolean = true, messa
5959

6060
export const usePreventLeave = ({
6161
hasAccepted = false,
62-
message = 'Are you sure want to leave this page?',
62+
message = 'Are you sure you want to leave this page?',
6363
onAccept,
6464
onPrevent,
6565
prevent = true,

0 commit comments

Comments
 (0)