Skip to content

Commit

Permalink
Show "Save draft" instead of "Saved" on initial product page (woocomm…
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuatf authored Jun 8, 2023
1 parent 8098c35 commit e09e8b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/js/product-editor/changelog/fix-38608
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: fix

Show "Save draft" instead of "Saved" on initial product page
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export function useSaveDraft( {
let children: ReactNode;
if ( productStatus === 'publish' ) {
children = __( 'Switch to draft', 'woocommerce' );
} else if ( hasEdits ) {
} else if ( hasEdits || productStatus === 'auto-draft' ) {
children = __( 'Save draft', 'woocommerce' );
} else {
children = (
Expand Down

0 comments on commit e09e8b8

Please sign in to comment.