From what you say it strongly suggests a defective heating element.
As for is it worth it? That depends on the age of your machine versus the relative costs of replacement or repair - only you can judge that.
I would guess 8 to 10 years to be a reasonable life of a dishwasher - you do not say the age of yours.
Good Luck...
May 2016