UnofficialCrusaderPatch / UCP3-GUI

Dev work on the UCP3 gui
GNU Affero General Public License v3.0
2 stars 0 forks source link

[BUG] Modal says "yes" "yes" instead of "yes" "no" #267

Closed gynt closed 3 weeks ago

gynt commented 1 month ago

image

Found the faulty line of code: https://github.com/UnofficialCrusaderPatch/UCP3-GUI/blame/71d793346b6283c1f38a43390aa6712073309303/src/components/modals/modal-ok-cancel.tsx#L68

It happened with the transition to the new locale system. Can likely be fixed at this line of code by making it say: cancel !== undefined ? cancel : 'cancel'