undo / undue are similar-sounding terms with different meanings (referred to as homophones). To better understand the differences, see below for definitions, pronunciation guides, and example sentences using each term. 👇
undo: (verb) cancel, annul, or reverse an action or its effect. (verb) cause the ruin or downfall of.
undue: (adjective) not yet payable. (adjective) not appropriate or proper (or even legal) in the circumstances. (adjective) lacking justification or authorization.
undo: ah·n·d·UW
undue: ah·n·d·UW
(Examples are Wikipedia snippets under the CC ShareAlike 3.0 license. Definitions drawn from WordNet.)