Skip to content

Commit

Permalink
Fix persistence of add-on options when toggling plan terms
Browse files Browse the repository at this point in the history
  • Loading branch information
jeyip committed Oct 27, 2023
1 parent f7d4c55 commit 97f35d9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ export const StorageAddOnDropdown = ( {

useEffect( () => {
defaultStorageOption &&
! selectedStorageOptionForPlan &&
setSelectedStorageOptionForPlan( { addOnSlug: defaultStorageOption, planSlug } );
}, [] );

Expand Down

0 comments on commit 97f35d9

Please sign in to comment.