Jeffrey D. Allred, Deseret News
Utah delegates shoot photos as they announce their vote during the National Republican Convention in Cleveland on Tuesday, July 19, 2016.

Utah's 40 delegates to the Republican National Convention in Cleveland have been awarded to GOP presidential nominee Donald Trump because he's the only candidate still in the race.

Phill Wright, the chairman of Utah's delegation, made a symbolic announcement during a Tuesday night roll call that Utah's delegates are going toward Texas Sen. Ted Cruz, who won Utah's presidential caucus in March.

But rules of the Utah Republican Party and the national Republican Party say that if a candidate drops out, as Cruz did, their delegates go toward the candidate left running.

Utah delegates on Monday joined other anti-Trump representatives by making loud objections to a rules vote but Wright said Tuesday that he thinks Republicans will unite around Trump.

Utah GOP chair James Evans predicted Trump will win by a higher percentage in Utah than in any other state.

Trump reached the magical number of 1,237 Tuesday evening after New York cast enough delegate votes to secure the nomination for Trump at the Republican National Convention in Cleveland.

"We're going to put New York into play this time around," New York delegate Donald J. Trump, Jr. said, before announcing that New York's votes had put Trump over the top.

Utah Sen. Mike Lee was involved with the turmoil on the opening day of the convention that put leaders of the GOP against anti-Trump delegates who wanted to vote their conscience instead of being held to the state election results.

Contributing: Whitney Evans